Scripts / entities loading already activated

Author
Message
Johno 15
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 25th Aug 2014
Location: Cork, Ireland
Posted: 10th Mar 2015 19:56
Hi all.
Is there any way for when My level to start an entity is already activated or dead using a script. e.g. when the level loads the standard gate which can be opened is already opened or a enemy is already dead on the ground??

thanks in Advance.
John Billington
www.archon-industries.moonfruit.com (Visit it)
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 11th Mar 2015 19:46
put
SetEntityHealth(e,0)
in the main script for any enemy you want dead

for a gate it's a little more complicated, if you want the gate to still be usable you would need to adjust it's initial state settings in the existing script (back it up first )
otherwise you can make a new script to just set the open animation frame and turn off collision
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Johno 15
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 25th Aug 2014
Location: Cork, Ireland
Posted: 12th Mar 2015 19:47
Thanks Smallg, worked like a charm
www.archon-industries.moonfruit.com (Visit it)

Login to post a reply

Server time is: 2024-05-19 22:44:03
Your offset time is: 2024-05-19 22:44:03