Search the Community
Showing results for tags 'relative position'.
Found 2 results
-
Simple script which allows the player to move a crate around and probably load it in vehicle. Paste this in crate, box, etc. init this addAction["Pickup Box",{ _object = (_this select 0); _user = (_this select 1); _object attachTo[_user,[0,1,1],"Pelivs"]; },nil,1.5,false,false,"","true",2,false,"",""]; this addAction["Drop Box",{ { detach _x; _x enableSimulationGlobal true; } forEach attachedObjects player; },nil,1.5,false,false,"","true",2,false,"",""]; You can pick up, move around and drop the crate. Enjoy this dead simple script. 🙂 You can make it "loadable" in a specific vehicle (it work only for RZOR vehicle of SOCOM faction (@RHS USAF) called "rzr" ). Unloading the box is simply using the addAction pickup while you are in the vehicle and then drop it when you get out. this addAction["Load in RZR",{ _object = (_this select 0); _user = (_this select 1); _object attachTo[rzr,[0,-1.1,-0.3]]; },nil,1.5,false,false,"","true",2,false,"",""];
-
I'm trying to drop 5 bombs in every car's exposed areas (front, right, left, back, top) but getRelPos is making me crazy 'cause it looks quite simple. 😕 _myCar = _x; _boomNorth = _x getRelPos [15,0]; //meters from obj, degreese _boomEast = _x getRelPos [15,90]; _boomSouth = _x getRelPos [15,180]; _boomWest = _x getRelPos [15,270]; _ammo createVehicle getPos _x; //over the car _ammo createVehicle getPos _boomNorth; _ammo createVehicle getPos _boomEast; _ammo createVehicle getPos _boomSouth; _ammo createVehicle getPos _boomWest;