Jump to content
Sign in to follow this  
diesol

Custom Composition add a addaction?

Recommended Posts

I there anyway to add a addaction to custom compositions? I am trying to make a farp but I cant seem to find a way to add it too it.

this addAction [("<t color=""#bbbbbb"">" + ("(Choose Parachute location)") + "</t>"),"AAHALO\x_paraj.sqf"];

this addaction  [("<t color=""#bbbbbb"">" + ("Teleport") + "</t>"),"x_client\x_teleport.sqf"];

I am using these scripts for the mean time inside the demo mission http://www.armaholic.com/forums.php?m=posts&id=132262

doc_farp.sqf

private ["_objs"];
_objs = 
[
["US_WarfareBAircraftFactory_EP1",[-3.2334,4.52734,0.0191345],178.521,1,0,{}],
["US_WarfareBVehicleServicePoint_EP1",[2.81055,4.2002,-0.1689],178.597,1,0,{}],
["FlagCarrierUSA_EP1",[-2.03906,9.65332,-0.0775452],349.27,1,0,{}],
["HeliH",[13.0176,4.30664,0],1.46189,1,0,{}],
["MASH",[-7.83594,11.5078,0.131744],87.9384,1,0,{}],
["ACamp_EP1",[5.42773,13.7949,-0.00012207],38.3621,1,0,{}],
["Land_Fire",[2.06152,15.0996,4.57764e-005],358.829,1,0,{}],
["Land_CamoNet_NATO_EP1",[1.13672,17.5674,-0.00634766],16.0093,1,0,{}],
["ACamp_EP1",[6.03418,17.0137,-0.0125885],333.957,1,0,{}],
["ACamp_EP1",[3.1875,18.6953,-0.0102997],286.598,1,0,{}],
["USVehicleBox",[-0.226563,19.0371,0.0247345],14.2393,1,0,"nul = [this,""west"",""all"",tue,5,20,5] execVM ""crateFiller.sqf"";"],
["Misc_Backpackheap_EP1",[-3.12402,19.6162,0.0017395],358.852,1,0,{}]
];

_objs

Edited by diesol

Share this post


Link to post
Share on other sites
_camp = nearestObjects [getPosATL player, ["MASH"], 5];
_camp addaction  [("<t color=""#bbbbbb"">" + ("Teleport") + "</t>"),"x_client\x_teleport.sqf"];

Share this post


Link to post
Share on other sites

just a thought... think this may be needed

_camp = nearestObjects [getPosATL player, ["MASH"], 5];  //returns a list
_closest = _camp select 0; //select the closest and first in the list
_closest addaction  [("<t color=""#bbbbbb"">" + ("Teleport") + "</t>"),"x_client\x_teleport.sqf"];

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×