HELP Spawning Smoke On Dead Player Corpse!

DangerRuss

OpenDayZ Rockstar!
I run battle royale events from time to time and I thought it would be a nice feature to have a smoke grenade spawn on the dead corpses, Im just not sure how/where to make this edit. I was thinking in the player_death.sqf but Im really not sure? The code might be something like this?
Code:
_player = _this select 0;
_smoke = "SmokeShellGreen" createVehicle (position _player);
_smoke attachTo [_player];
Thanks for any help!
 
I actually think I got this working. I just found the relevant part of the player_death.sqf where it grabs the player ID and changed the variable to the above code I pasted like so
Code:
_smoke = "SmokeShellGreen" createVehicle (position _body);
_smoke attachTo [_body];
 
Back
Top