hi,

Originally Posted by
FighterD1
Another help if making ammo crates is impossible I need help finding a script that will let me and my friends re-spawn with the gear they started with. Again if this is not possible I guess I am SOL
Thanks for any advice or just telling me if its not possible.
It is possible to make both crates and players respawn witht he gear they started with.
For the ammo crate here's a list for reference about possible values. http://community.bistudio.com/wiki/OFP:_Weapons
init.sqs
Code:
;-----------------------------------------------------------------------------------------
; Ammo box
;-----------------------------------------------------------------------------------------
[] exec "box_load.sqs"
;-----------------------------------------------------------------------------------------
; Alive check
;-----------------------------------------------------------------------------------------
[] exec "alive_check.sqs"
exit
box_load.sqs
Code:
;*****************************************
;Box Load Script By Nikiller v0.9b
;Load ammo box with custom weapon load out
;Contact: nikillerofp@hotmail.fr
;[crateName] exec "box_load.sqs"
;*****************************************
_u = _this select 0
_u addmagazineCargo ["RPGLauncher",9]
_u addmagazineCargo ["AT4Launcher",9]
_u addmagazineCargo ["Skorpionmag",48]
_u addMagazineCargo ["9K32Launcher",2]
_u addWeaponCargo ["RPGLauncher",3]
_u addWeaponCargo ["9K32Launcher",1]
_u addWeaponCargo ["AT4Launcher",3]
_u addWeaponCargo ["Skorpion",6]
exit
alive_check.sqs
Code:
;************************************************************
;Alive Check Script By Nikiller v0.9b
;Check if the player is alive in rewpawn missions
;NOTE: Only executed for the player to save performance in MP
;Contact: nikillerofp@hotmail.fr
;[] exec "alive_check.sqs"
;************************************************************
if (local player) then {} else {goto "ende"}
#b
@ alive player
titleCut ["","BLACK IN", 5]
[] exec "init_respawn.sqs"
@ not alive player
~4
titleCut ["","BLACK OUT", 5]
goto "b"
#ende
exit
init_respawn.sqs
Code:
;****************************************************
;Respawn Init Script By Nikiller v0.9b
;Initialize player after respawn
;NOTE: Only local to player to save performance in MP
;Contact: nikillerofp@hotmail.fr
;[] exec "init_respawn.sqs"
;****************************************************
if (local player) then {} else {goto "ende"}
;give custom weapon loadout to player after respawn
_m=magazines player
_w=weapons player
{player removeMagazine _x} forEach _m
{player removeWeapon _x} forEach _w
;mags
_hg="HandGrenade"
_rv="IngramMag"
;weapons
_in="Ingram"
;equipment
_bino="Binocular"
_nvg="NVGoggles"
_m=[]
_w=[]
_m=[_hg,_hg,_rv,_rv]
_w=[_in,_bino,_nvg]
{player addMagazine _x} forEach _m
{player addWeapon _x} forEach _w
;execute whatever script you want after rewpawn
[player] exec "whatever_script.sqs"
#ende
exit
cya.
Nikiller.