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

Trigger creates a unit help

Recommended Posts

Tried several methods and to no avail at the moment.

I want to create a West patrol mission that triggers the creation of an East AA man on a marker position and have him fire on an AH1 providing CAS. Using the same script to spawn several insurgents in and around the town as an ambush, all help appreciated. (Using Mr Murrays guide and replacing the ARMA1 classnames with ARMA2 names and yet cant get it working)

Share this post


Link to post
Share on other sites

You must create a Opfor unit somewhere in the editor... the east side must be initalized to be able to create other east units (or use "createcenter east").

Share this post


Link to post
Share on other sites

Thank you for the reply, didnt realise 1 unit needed to be present so will give this a shot

Share this post


Link to post
Share on other sites

After placing an East unit on the map and assigning a Group name ive managed to get a unit to span on the marker. How do I go about setting the behaviour mode of the created unit.

I want the created unit to spawn from a trigger (working so far) remain in a careless stance and target the passing Helo with its AA launcher using the dofire command.

So far the unit tries to return to its group member across the map *sigh*

Share this post


Link to post
Share on other sites

The createunit command supports a entry for the init, you can use this...

[this] joinsilent GrpNull; this setcombatmode "Safe"; This selectweapon "AALauncher (or somethink)"; this dofire Plane;

Or you can launch a script with more informations for the unit:

dumvar = [this] execVM "script.sqf";

script.sqf

_unit = _this select 0;
[_unit] joinsilent GrpNull; 
_unit setcombatmode "Safe"; 
_unit selectweapon "AAthing";
sleep 5; 
_unit dofire Plane;

waituntil {not alive plane};

deletevehicle _unit;

;

Share this post


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

×