View unanswered posts | View active topics It is currently Fri Dec 27, 2024 8:38 am



Reply to topic  [ 5 posts ] 
 No Spawning Script? 
Author Message
DRLGrump
User avatar

Joined: Tue Nov 07, 2006 1:26 am
Posts: 2037
Location: Jerking off in a corner over by the OT sub-forum
Reply with quote
Post 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.


Sat Jul 24, 2010 1:13 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post 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
I'm not sure if the teams are enumerated like they are in .ini, but I'm sure you can change it to 2 if it doesn't work.


Sat Jul 24, 2010 1:30 am
Profile WWW
DRLGrump
User avatar

Joined: Tue Nov 07, 2006 1:26 am
Posts: 2037
Location: Jerking off in a corner over by the OT sub-forum
Reply with quote
Post Re: No Spawning Script?
No, I don't know how to, but I can learn that much at least. Thanks a load.


Sat Jul 24, 2010 1:33 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: No Spawning Script?
No worries. You can probably just make a copy of a brain and add "ScriptPath = path/to/script"


Sat Jul 24, 2010 1:39 am
Profile WWW
DRLGrump
User avatar

Joined: Tue Nov 07, 2006 1:26 am
Posts: 2037
Location: Jerking off in a corner over by the OT sub-forum
Reply with quote
Post 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.


Attachments:
Zip.zip [5.98 KiB]
Downloaded 164 times
Sat Jul 24, 2010 2:01 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.100s | 16 Queries | GZIP : Off ]