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

script problem

Recommended Posts

Hi. ive been trying to make a script that will allow me to call in a AI controlled chopper which will pick my character up then move to a point where ever i click on the map. very similar to the transport support one that is already in arma (i like creating my own stuff rather than use pre made ones). the problem im having though is when the AI lands. for some reason it keeps slamming the helicopter into the ground and damaging the engine and making it unflyable.

setfire=true;

titleText ["Click on the map to set your firedirection","plain down"];

onMapSingleClick "ChopTarget setPos _pos; setfire=false";

@!setfire;

"heliTarget" setmarkerpos getPos ChopTarget;

onMapSingleClick "";

titleText ["", "plain down"];

; ****************************************************************

WP1 pickup addWaypoint [position ChopTarget, 100];

WP1 setWaypointStatements ["true", ""];

WP1 setWaypointType "MOVE"

WP1 setWaypointSpeed "LIMITED";

WP2 = pickup addWaypoint [position ChopTarget, 0];

WP2 setWaypointStatements ["true", "doStop Heli1; Heli1 land 'ChopTarget'"];

WP2 setWaypointType "LOAD"

WP2 setWaypointSpeed "LIMITED";

when i use the land action in the map editor the AI lands fine but when it run from a script file it lands to fast.

thanks for any help

Share this post


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

×