Games
Developers
Forums
More
BYOND
Download
Developer Guide
Developer Reference
Support
Terms of Service
Membership
Contact Us
Many features on this site require JavaScript. Please enable JavaScript support in your browser.
Register
Login
BYOND Forums
Announcements
·
BYOND Help
·
Bug Reports
·
Feature Requests
·
Beta Testers
·
Beta Bugs
·
Developer Help
·
Design Philosophy
·
Demos & Libraries
·
Tutorials & Snippets
·
Art & Sound
·
Classified Ads
·
Game Updates
·
Contests & Events
·
Linux Talk
·
On Topic
·
Off Topic
Spawning mobs?
[Tips]
ID:158978
Jun 3 2009, 10:08 am
Neos300
Hi, i am trying to make a respawn system and I am wondering, how do i spawn a mob without knowing it's direct type?(the type of the mob is supposed to be passed as an arg, but i can't seem to make a new mob based off of that type.)
Jun 3 2009, 10:25 am
ANiChowy
proc
/SpawnMob(type, loc)
new
type(loc)
Just make sure what you're passing into the proc is valid(you could validate the information yourself, of course).
Jun 3 2009, 10:27 am
In response to
ANiChowy
Neos300
thanks.
Copyright © 2025 BYOND Software. All rights reserved.
Just make sure what you're passing into the proc is valid(you could validate the information yourself, of course).