LoadingSA Posted February 23, 2014 Report Share Posted February 23, 2014 I'm looking to add a script to our admin menu that would allow me to target a player and have a box drop on their location with a green smoke gernade attaced to it. Here is what I have so far; closeDialog 0; titleText ["Click On The Map", "PLAIN DOWN"]; titleFadeOut 4; carepkg= { onMapSingleClick hint format ["CarePackage Called In @\n%1" ,_pos]; for "_i" from 0 to 0 do { _pos1 = [(_pos select 0), (_pos select 1), 100]; sleep 1; _box = "BAF_VehicleBox" createVehicle _pos1; _smoke = "SmokeshellGreen" createVehicle position _box; _smoke attachto [_box, [0,0,0]]; _box attachTo [_chute, [0,0,0]]; _box addWeaponCargoGlobal ["AK_74", _itemn]; _box addMagazineCargoGlobal ["30Rnd_545x39_AK", _itemn * 2]; sleep 1; _chute = createVehicle ["ParachuteC", [(_pos1) select 0,(_pos1) select 1], [], 0, "FLY"]; []spawn sleep 1; vehC = nearestObjects [vehicle player, ["BAF_VehicleBox"], 150]; vehD = nearestObjects [vehicle player, ["ParachuteC"], 500]; veh = vehC select 0; chute = vehD select 0; veh attachTo [chute, [0,0,1.5]]; }; onMapSingleClick ""; openMap [false, false]; }; openMap [true, false]; onMapSingleClick "[_pos select 0, _pos select 1, _pos select 2] call carepkg"; Link to comment Share on other sites More sharing options...
0 LoadingSA Posted February 23, 2014 Author Report Share Posted February 23, 2014 Hello @LoadingSA I found this some weeks ago, it can maybe help you a little bit out. http://opendayz.net/threads/carepackage-box-drop.18234/ Link to comment Share on other sites More sharing options...
0 DY357LX Posted February 23, 2014 Report Share Posted February 23, 2014 Maybe add: openMap [true, false]; Just before/after the "Click on map" message. And I think you can give the player a GPS with this: if (isnil "fsdandposanpsdaon" ) then {fsdandposanpsdaon=0}; if (fsdandposanpsdaon==0) then { player addweapon "ItemGPS"; fsdandposanpsdaon=1; }; Link to comment Share on other sites More sharing options...
0 LoadingSA Posted February 23, 2014 Author Report Share Posted February 23, 2014 Anyone know how I can make it so you just highlight the players name in the admin menu to drop this on them? Link to comment Share on other sites More sharing options...
0 Halvhjearne Posted February 24, 2014 Report Share Posted February 24, 2014 i made something like this a while back ... i recently updated scripts a lot ... ill update the link soon Link to comment Share on other sites More sharing options...
0 DY357LX Posted March 3, 2014 Report Share Posted March 3, 2014 Is there a way to stop the wind blowing the packages massively off-course? The setWind[] command doesn't help much. Link to comment Share on other sites More sharing options...
Question
LoadingSA
I'm looking to add a script to our admin menu that would allow me to target a player and have a box drop on their location with a green smoke gernade attaced to it.
Here is what I have so far;
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now