Trigger Replacement Functions

2 posts 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
4 people like this

Share this post

Link to post
Share on other sites

To me thi s is a very nice server side alternative to mission.sqm ;) thx 

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.