Trigger Replacement Functions

1 post in this topic

I wrote something to replace triggers on my servers. Its on github so feel free to do PR's


// Create triggers
_trigger = [
      // Code to run when the players inside the area changes
      // Predefined Vars:
      // _players = list of players inside area, order by distance asc
      // _trigger = _trigger object (which is a local game logic) so you can set/getVariable on it
      // _triggerId = trigger id
	[_arg1, _arg2] // vars that get passed to code above
] call TRG_fnc_createTrigger;

// Delete trigger
[_trigger_id] call TRG_fnc_deleteTrigger;

Hope it helps someone :)

Edited by maca134
5 people like this

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.