Data Realms Fan Forums http://45.55.195.193/ |
|
No Spawning Script? http://45.55.195.193/viewtopic.php?f=73&t=19319 |
Page 1 of 1 |
Author: | Tomaster [ Sat Jul 24, 2010 1:13 am ] |
Post subject: | No Spawning Script? |
I'm looking for a script that will disable the enemy from spawning on a specific scene. I'm using the scene for testing purposes, and having the enemy drop in and shot up my ♥♥♥♥ gets annoying. Can anyone point me to a script, and tell me what to do with it? Thanks. Please don't tell me to do it myself, because I have neither the will or the need to learn Lua. |
Author: | Geti [ Sat Jul 24, 2010 1:30 am ] |
Post subject: | Re: No Spawning Script? |
Fair enough. I'm assuming you know how to attach scripts to objects. Attach the following to whatever, and place that in the scene. for as long as it lives, all team 2 actors will be deleted. Code: function Update(self) for actor in MovableMan.Actors do if actor.Team == 1 then actor.ToDelete = true end end end |
Author: | Tomaster [ Sat Jul 24, 2010 1:33 am ] |
Post subject: | Re: No Spawning Script? |
No, I don't know how to, but I can learn that much at least. Thanks a load. |
Author: | Geti [ Sat Jul 24, 2010 1:39 am ] |
Post subject: | Re: No Spawning Script? |
No worries. You can probably just make a copy of a brain and add "ScriptPath = path/to/script" |
Author: | Tomaster [ Sat Jul 24, 2010 2:01 am ] | ||
Post subject: | Re: No Spawning Script? | ||
I threw this together really quickly, and I think it works, but I'd like to have it checked and make sure I didn't miss anything.
|
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |