Author Topic: Trigger event once per player?  (Read 652 times)

I'm looking for an event (or structure, if it's possible without add-ons) that would give a similar effect to the treasure chest.

I'm essentially looking to integrate an 'Easter egg' function into my server, so, say, when a player activates a certain brick, such as a door that leads to a particular hidden or referential area, they receive recognition of this from the client, and then can activate the brick without this happening in the future.

Easy enough to do for one person by simply deactivating the relevant events, but is it possible, or is there an add-on that can help make it so the events triggered are specific to the person who triggered them? I.e, I open the door, trigger the event and then can use said door without the event re-occurring, but another person using the door for the first time would still trigger the event for them?

Hope I made that clear enough. Any pointers in the right direction appreciated.
 

You can use VCE to assign a variable to every client like <var:cl:hasFound1> and set it to 1 when the player finds it, and make it check if it is not 1 to allow them to trigger the events.