bluevein 0 Posted June 19, 2007 Hi, I have been through 136 posts and cant find it could somone tell me or point me in the right direction. I am looking for a script that my group (independant) that when they get killed in my MP mission they spawn with the gear that they die with. Seems strange that you would die with L85A2 or G11 and respawn with a M4 or somthing like that. Thanks. Share this post Link to post Share on other sites
crashdome 3 Posted June 19, 2007 Use the Killed event handler and attach it locally to the player. It should run a script which "reads" the values of what the unit is carrying. You then use the waitUntil command and check the health for when "player damage > 0.5" or something and then reapply the weapons. I would write it all out, but I am limited on time and I am sure someone has one already... Share this post Link to post Share on other sites
bluevein 0 Posted June 19, 2007 I think I will wait as that means nothing to me Share this post Link to post Share on other sites
HulkingUnicorn 0 Posted June 19, 2007 Norrin has converted/made a revive script and weapons respawn script from OFP. You can choose to only grab weapons part or use the whole package (try it out, it's great). Find it here Share this post Link to post Share on other sites
bluevein 0 Posted June 19, 2007 Man you are the dogs, thanks alot Share this post Link to post Share on other sites
bluevein 0 Posted June 21, 2007 ok, i tryed a work around with that and cant get it to work as the init file needs to have the information in. I know i have fount it in this forum before but, tried the search but can find it. What I need if there is any one that can help me (Please) The scrips for the init.sqs file that makes you respawn with the same weapon you die with. Please could somone point me in the right direction or tell me what it is would be greatly aprecearted. many thanks Share this post Link to post Share on other sites
norrin 9 Posted June 21, 2007 You can get the latest code for the weapon respawn script from this thread: http://www.flashpoint1985.com/cgi-bin....n;st=15 Just create a notepad file called weapons_respawn.sqs and paste in the code. You can then implement it either through the init line of the unit in the editor or through the init.sqs/init.sqf. The method for doing this and notes on script options are contained in the text at the top of the script. If you're still running into probs email me your mission to norrin@iprimus.com.au or send me a link and I'll set it up for you. norrin Share this post Link to post Share on other sites