Scripts / If Used

Author
Message
Big Dog Game Studios
12
Years of Service
User Offline
Joined: 18th Jun 2012
Location: Port Angeles, WA
Posted: 6th Mar 2015 21:37 Edited at: 6th Mar 2015 22:52
I found a thread here about the If Used function, and Lee said he was adding it to the list back in June. Is this function implemented yet? If so, then calling the script (ex. used.lua) from the If Used section should trigger it right? It kinda has me confused, something isn't working right lol
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 6th Mar 2015 22:03
no that field currently is just for the 'name' of entities that are "hidden" at start (spawn at start = no)
when you place the name inside the ifused field of an entity with a specific function call 'ActivateIfUsed(e)' it'll then spawn all entities with that name (depending on the conditions specified in the script

e.g, place group of enemies to not spawn at start
type their name into a trigger zone ifused field
walk into zone and enemies will spawn
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Login to post a reply

Server time is: 2024-12-21 15:07:56
Your offset time is: 2024-12-21 15:07:56