maca134

Trigger Replacement Functions

6 posts in this topic

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

https://github.com/maca134/arma_triggers

Usage:

// Create triggers
_trigger = [
	_trigger_position,
	_trigger_distance,
	{
      // 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
8 people like this

Share this post


Link to post
Share on other sites

hey, iam working on a mission system which requires triggers which iam not able to place. so after 3 days of searching i found this which i would need a bit more of informations on how to use this

Share this post


Link to post
Share on other sites
Advertisement
10 minutes ago, geekm0nkey said:

WSKdtFQ.png?fb

yeah i did notice this is 1 1/2 year ago but if i dont manage to set triggers my whole mission system is reked

Share this post


Link to post
Share on other sites

Posted (edited)

No problem, id ask kuplion he has a good handle on triggers as he uses them in the ExileZ mod with success.

Edited by geekm0nkey

Share this post


Link to post
Share on other sites

would be pretty great cause nearly non of my missions can be completed without triggers ^^

Share this post


Link to post
Share on other sites
Advertisement

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.