PDA

View Full Version : Trigger?



Kiptanoi
Jun 13 2009, 10:24
Where can I read about all trigger comand that I can do, I am editing a SP mission, and need some help with triggers....

Need help with:
1) Trigger to alert if enemy see me within an area.
2) Trigger to get the alerted enemy to attack me within an area.
3) Trigger to send some enemy to a location after being alerted.

{_x setBehaviour "Stealth"} forEach list Area1
All units would take cover now, for example. But the order setBehaviour "Stealth" is only
one of many possibilities.

That text is from Armed-Assault_Editing-Guide_Deluxe_Edition_by Mr-Murray_EN

But where do I find all setBehaviour that I can use?

If there is any swedish one on this forum that I can write to ask things and get me some help that would be great. write me please.


The first thing I am done is to have a siren, and a trigger, if anyone see me, the siren is on and a alarmsound goes on.
And thats fine and working.

The second thing is that I have a rifelman about 500 yards away, and he is standing still.
But I would like to get him moving towards the siren when the alarm get on.

And I cant get that to work.

Alex72
Jun 13 2009, 15:02
Im not the best at mission editing or triggers - but...

Make a WP just infront of your enemy. Make the next where you want the enemy to run to (can even set a radius if you dont want the enemy to come exactlly the same everytime). Drag a synchronization line between the first waypoint (closest to the enemy) and the "ALARM" trigger (wich is triggered by your player(s)). Set the trigger to activate when playing side steps into it.

Make the trigger radius as big or small as you want it. Also make the enemies that will come running radius covering the area as well - maybe a bit smaller and they will come random everytime you play but still come to the area and find you out.

Like i said - im not the best, but i think this could help you as a start. The editor is powerful and you can do things in many ways. Some better than others, but at least this is a "pure" way of doing it with the editors resources. :)

EDIT: Dont forget to set the first WP to "FULL SPEED" so the enemies run towards you, and the last WP or one just before the last to "DANGER" for the enemies and they hopefully are sneakier and use more tactics.

Lycka till & fråga gärna igen.

Cheers
Alex

easty
Jun 13 2009, 15:42
A nice little overview from ofpec

http://www.ofpec.com/ed_depot/index.php?action=details&id=22&game=ArmA

CarlGustaffa
Jun 13 2009, 20:42
Biki for Arma1 (http://community.bistudio.com/wiki/Category:Scripting_Commands) and Arma2 (http://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA2) has all the commands you are looking for. Note that the one for Arma2 is still incomplete, so I'm posting the one for Arma1 as well. Not linking to the command was deliberate :) Learn to lookup stuff on the Biki (http://community.bistudio.com/wiki/Main_Page).

Learning the Mission Editor (http://community.bistudio.com/wiki/ArmA:_Mission_Editor) is also time well spent.