OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Resources Beta Testing & Submission => Topic started by: norrin on 15 Feb 2007, 23:25:49

Title: toadlife's weapon respawn script updated for ArmA (OBSOLTE)
Post by: norrin on 15 Feb 2007, 23:25:49
Hi guys,

I updated toadlife's weapon respawn script for ArmA a few weeks back and posted it on the BI Forums.  I've had a lot of positive feed back about this since and it seems to be working on both local and dedicated servers.  

This script allows playable units to respawn with the weapons and ammo that they originally started the mission with or with the weapons and ammo that they died with.  There are a couple of ways to implement this script and instructions for both are within the script itself but the easiest way to do it is to give each of your playable units a name such as west_1 then put in its init line either:

Code: [Select]
 
[west_1, 0] exec "weapons_respawn.sqs";

if you want the playable unit to respawn with the weapons and ammo it started the mission with; or
Code: [Select]
 
[west_1, 1] exec "weapons_respawn.sqs";

if you want the playable unit to respawn with the weapons and ammo it died with, where "west_1" is the units name.

You can get both the files you need to run this script as a zip file from here (http://home.iprimus.com.au/simonnsl/norrinsArmA/Scripts/weapon_respawn.rar)
Title: Re: toadlife's weapon respawn script updated for ArmA (Testing needs demo missio
Post by: Planck on 01 Sep 2007, 15:40:05
Would be ideal if a demo mission was included with this for testing and demonstration purposes.


Planck
Title: Re: toadlife's weapon respawn script updated for ArmA (Testing needs demo missio
Post by: Seven on 07 Sep 2007, 16:42:33
Here's a (very) simple demo
Try do die once at least  :D