OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: SafetyCatch on 08 Nov 2004, 14:20:37

Title: Respawn without weapons
Post by: SafetyCatch on 08 Nov 2004, 14:20:37
Anyone know how to make it so when a unit respawns, their weapons are removed??

Thanks

Safety
Title: Re:Respawn without weapons
Post by: Strango on 08 Nov 2004, 15:35:46
Here's a sample script that should do what you want:

Code: [Select]
@time > 1
@!alive player

#start
@alive player
removeAllWeapons player
@!alive player

goto "start"


Put that into a script that executes on each client's PC and it should work.
Title: Re:Respawn without weapons
Post by: SafetyCatch on 08 Nov 2004, 19:58:42
Ok cool cheers, so I put it in each playable units init line, for example??  ???
Title: Re:Respawn without weapons
Post by: Triggerhappy on 08 Nov 2004, 21:24:04
you would need to put that into a script, and in the init line if the unit you would put [] exec "NameOfScript.sqs"
Title: Re:Respawn without weapons
Post by: SafetyCatch on 09 Nov 2004, 11:02:24
Yer that's what I meant :)