anyway to reset entities ingame? Created 19 years ago2004-08-24 19:07:30 UTC by SwivMaster SwivMaster

Created 19 years ago2004-08-24 19:07:30 UTC by SwivMaster SwivMaster

Posted 19 years ago2004-08-24 19:07:30 UTC Post #53693
is there anyway to reset an entity with a trigger or with any other way?
for instance an entity that was targetkilled -> to reset it and bring it back; or a door that no matter if its currently closed or open -> to reset it to its starting position. :confused:
Posted 19 years ago2004-08-24 21:11:51 UTC Post #53715
Using the Find function on this page, entering "killtarget," and searching through the available categories, I found "killtarget" in the Glossary. YOU could have done that, too! ;) (hint, hint)

It says, once an entity has been killtargeted, it's removed from the game. So, no, it can't be "reset."
Posted 19 years ago2004-08-25 10:10:22 UTC Post #53893
what about triggering a door to its starting position?
just need to know if theres any kind of way..
Posted 19 years ago2004-08-25 10:32:53 UTC Post #53896
I dont think so
Posted 19 years ago2004-08-25 10:55:00 UTC Post #53899
What do mean by triggering it to its "starting" position? Do you mean open or closed?

If you don't killtarget it, you can let an env_global keep track of the door's position throughout the game and, if necessary, you can open it if it's closed and close it if it's open.

Is that what you have in mind?
Posted 19 years ago2004-08-25 12:31:00 UTC Post #53919
ok this is what i have in mind:
i have a door that starts closed and can be open/closed by a button
no what i want to do, is anothr button that once its triggered, the door will be closed, so if it was already closed it wont have any effect but if the door was open, it will close the door.
Posted 19 years ago2004-08-25 17:03:23 UTC Post #54046
Sounds like you want a 'lock' on the door, which will close it (if necessary) and lock it when triggered.

To close it only if it's open, you can keep track of its position using a global variable, set by an env_global.

To lock it, you need a Master (a multisource) for the func_button that opens and closes it. The Master doesn't trigger it, it provides a permissive for the button to work. When the Master is 'on,' the button will work. By setting the Master to 'off,' it will prevent the button from working.

Lemme see if I can throw an example together this evening.
Posted 19 years ago2004-08-25 17:33:19 UTC Post #54055
ok thx a lot
Posted 19 years ago2004-08-25 18:32:45 UTC Post #54071
Take a look at 'Door with Lock' in the Examples map vault.

It may appear complicated if you're not use to using entities this way.
Posted 19 years ago2004-08-25 23:33:47 UTC Post #54121
help :| trying to get a func_button to turn on and off a triiger_hurt. i can get this to work the only thing is when the round restarts the trigger_hurt is still going. how do i turn this off? any help gratefuly recieved :)
Posted 19 years ago2004-08-26 04:04:55 UTC Post #54149
BJ, I'm afraid this has already been covered in jaardsi's example map, "Multisource". I've moved your map to the Unfinished section just in case I am mistaken, but if it demonstrates the same I would be grateful if you would delete it to preserve the integrity and usefulness of the Example Maps section :)
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2004-08-26 07:27:22 UTC Post #54179
Done, SM.
Posted 19 years ago2004-08-26 11:52:57 UTC Post #54238
hi, i still dont understand how that env_global works. i've read the tutorial and checked its example map and couldnt find the connection for what i need to do with it. :
plz if u can tell me more specificly what i need to do in my case.
here ill make this an easy case:
in my map theres a door that can be toggled -> opened and closed (starting on close)
i want to make a button that after its triggered, the door will be closed for sure.

exactly what entities i need for that and what do i need to set in them?
Posted 19 years ago2004-08-26 12:41:01 UTC Post #54244
You really need to understand the env_global and multisource entities to do what you want. If you're having difficulty with using env_globals and multisources, maybe what you want to do is a bit too complex for your stage in mapping right now.

Simplify things a bit, keep learning and come back to this later.
Posted 19 years ago2004-08-26 13:59:06 UTC Post #54268
i dont this its too complex....i just need to understand env_global.
isnt it so that i can do this with a func_button that will trigger the env_global and use a trigger_auto with 'trigger state' off, to make sure the door will be closed?
Posted 19 years ago2004-08-26 20:33:48 UTC Post #54372
hmmm most I can do is get it to reset. ie if its on and the map resets its off but if the map resets and its off it goes on :| this is by using a door as a triiger for a multimanager and having the entities i want reset in smart edit set as "1" on the multimanager. now how do i get it so that the entity(triiger_hurt) stays off if it was off? :confused:
You must be logged in to post a response.