OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: winchesterdelta on 25 Sep 2008, 01:27:55

Title: Need help Officer detected trigger..?? trigger gives hint to player.
Post by: winchesterdelta on 25 Sep 2008, 01:27:55
Hey guy's,

i need some help with something.
How can i put together a trigger that detects my ennemy officer in a certain area, and give that information with a hint to the bluefor soldiers only.
So when officer1 enters area2, player1 gets hint Officer spotted in area 1 move to intercept.

I can't figure this one out, but it must be verry simple i tought.

Thanks for you'r time...
Title: Re: Need help Officer detected trigger..?? trigger gives hint to player.
Post by: ModestNovice on 25 Sep 2008, 01:55:49
Name your enemy Officer something like: EOfficer (you know something very creative  :P )


Ok Trigger:

Code: [Select]
Condition:  EOfficer in thislist AND (side player == WEST)

Code: [Select]
OnActivation: Hint "The officer is here!"
Title: Re: Need help Officer detected trigger..?? trigger gives hint to player.
Post by: winchesterdelta on 25 Sep 2008, 04:58:14
Its not working for me for some reason..
Hmm i put it exactly the way you did.

Also i changed in trigger:
-Detected by OPFOR
-Repeating
-present
-activated by OPFOR

Thats because i want the trigger to be activated when the officer is there and than it will send a hint Only to the Bluefor groups that the officer is in that area.

Anny more suggestions  :)
Title: Re: Need help Officer detected trigger..?? trigger gives hint to player.
Post by: ModestNovice on 25 Sep 2008, 05:47:59
well works fine for me.

I just changed it to this. (ALSO: Make sure you named the unit the same thing it is checking for!)
My 'Officer' is named EOfficer
Code: [Select]
Activation: Anybody
Condition: EOfficer in thislist
OnActivation: if (side player == WEST) then {player sideChat "The Officer is here!"};
Title: Re: Need help Officer detected trigger..?? trigger gives hint to player.
Post by: winchesterdelta on 26 Sep 2008, 00:14:36
Thanks man.. it works now.

You really helpd me out there ...
Title: Re: Need help Officer detected trigger..?? trigger gives hint to player.
Post by: ModestNovice on 26 Sep 2008, 03:35:14
great ;)

No problem.

Glad it worked :)