• 0
Erzengel

create local trigger

Question

as the title might allready have told you, i want to create an trigger in an sqf file. (two to be honest)

this

    _trg = createTrigger ["EmptyDetector", [6752.155273,13031.15918,-1]];
    _trg setTriggerArea [2, 2, 0, false];
    _trg setTriggerActivation ["ANYPLAYER", "PRESENT", false];
    _trg setTriggerStatements ["this", "addAction 'Bandagen ablegen', 'mission\kyrkmedic\bandagenablegen.sqf'", ""];
	
	_trg1 = createTrigger ["EmptyDetector", [6752.155273,13031.15918,-1]];
    _trg1 setTriggerArea [2, 2, 0, false];
    _trg1 setTriggerActivation ["ANYPLAYER", "PRESENT", false];
    _trg1 setTriggerStatements ["this", "addAction 'Vishpirin ablegen', 'mission\kyrkmedic\vishpirinablegen.sqf'", ""];
	

is how i tried to publish a trigger in one of my story missions. the mission is geting called, all options from addAction commands  are available, hints are shown and everythi ng works fine eccept for the triggers and the addAction comands the trigger should give to the player. anyone can tell me what i did wrong?

Share this post


Link to post
Share on other sites

2 answers to this question

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.