Search the Community
Showing results for tags 'advanced rapelling'.
Found 1 result
-
SiC_fnc_placeSandBag = { _sandBag = createVehicle ["Land_BagFence_Long_F",(_this select 1) modelToWorld [0,2,0], [], 0, "CAN_COLLIDE"]; _sandBag setDir getDir (_this select 1) - 180; _id = _sandBag addAction ["Remove Sandbag", {call SiC_fnc_removeSandBag}]; }; SiC_fnc_removeSandBag = { deleteVehicle (_this select 0); }; _id = player addAction ["Place Sandbag", {call SiC_fnc_placeSandBag}]; SiC_fnc_placeFlag = { _sandBag = createVehicle ["FLAG_US_F",(_this select 1) modelToWorld [0,2,0], [], 0, "CAN_COLLIDE"]; _sandBag setDir getDir (_this select 1) - 180; _id = _sandBag addAction ["Remove Flag", {call SiC_fnc_removeFlag}]; }; SiC_fnc_removeFlag = { deleteVehicle (_this select 0); }; _id = player addAction ["Place Flag", {call SiC_fnc_placeFlag}]; SiC_fnc_placeSupplies = { _sandBag = createVehicle ["CUP_USBasicAmmunitionBox",(_this select 1) modelToWorld [0,2,0], [], 0, "CAN_COLLIDE"]; _sandBag setDir getDir (_this select 1) - 180; _id = _sandBag addAction ["Remove Supplies", {call SiC_fnc_removeSupplies}]; }; SiC_fnc_removeSupplies = { deleteVehicle (_this select 0); }; _id = player addAction ["Place Supplies", {call SiC_fnc_placeSupplies}]; SiC_fnc_placeConcertinaWire = { _sandBag = createVehicle ["ACE_ConcertinaWireCoil",(_this select 1) modelToWorld [0,2,0], [], 0, "CAN_COLLIDE"]; _sandBag setDir getDir (_this select 1) - 180; _id = _sandBag addAction ["Remove Concertina Wire", {call SiC_fnc_removeConcertinaWire}]; }; SiC_fnc_removeConcertinaWire = { deleteVehicle (_this select 0); }; _id = player addAction ["Place Concertina Wire", {call SiC_fnc_placeConcertinaWire}]; So I put this into a radio trigger and it works fine. The problem is when I use this: removeallactions player It also removes the advanced towing, sling loading, rappelling, and urban rappelling from the action menu. I need either a way to exempt these from the removeallactions. (No Progress) or I need the action ids or what to put in the second trigger. (Some progress I've gotten close) i changed all the "_id" to "id" and it got as close as removing the "Place Concertina Wire" option but that is all using player removeaction id I sincerely feel this myaction = player addAction ["Hello", "hello.sqs"]; and player removeAction myaction; holds the answer to my problem. I tested it without my content and it did what I want.
- 2 replies
-
- addaction
- removeaction
- (and 6 more)