Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
rafasl18

Create unit with a trigger

Recommended Posts

Hello,

I'm doing a mission for ArmA2 OA and I need to create a unit and do that it moves to a place when it spawns. I found a solution for this problem by hiding the unit, but if the server didn't load the unit until the moment that I want, it would be better. I don't know if there is any solution for this problem...

rafasl18

Share this post


Link to post
Share on other sites

newgrp = creategroup West;
newman = newgrp createunit [typeof player ,getpos thistrigger,[],0,"none"];
newman domove getpos glogic;

Typeof player, you can replace with the type of unit you want "TK_Soldier_MG_EP1"

glogic will be a gamelogic placed on the map and named glogic, it will act as a waypoint

One issue when using triggers is that they activate on each machine so you and up with multiple units.

I think you can get around this by adding a condition in the triggers condition box, but I could be wrong.

cond

this and isserver

Share this post


Link to post
Share on other sites
Sign in to follow this  

×