OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Dr Venkman on 14 Apr 2003, 13:29:07
-
Hi everyone, sorry to be posting this, but im going nuts over this script.
Toadlife's Universal Weapons Respawn Script -
Now i've read the script but i do not understand what it wants me to do. Im new to scripting..i have the respawn working, but not the respawn with the same weapons.
I have named my unit w1, and have said in its init field "[] exec "weapons_respawn.xsqs"
My description.exe file says
respawn = 3
respawndelay = 10
I respawn, but with a stupid m16, not with my remmington sniper rifle from SEB Nam pack 2.
Point me to the right direction if you don't want to reply with the exact commands. I have searched but im still not understanding. :-\
-
You are close... ;)
If your unit is named "w1" then do:
["w1",0] exec "weapons_respawn.xsqs
or
["w1",1] exec "weapons_respawn.xsqs
The 0/1 are the different respawn options, which are outlined in the notes at the top of the script. Also...make sure you have at least v1.85
-
*hurries off to DL script*
omg, waited forever for such a script... :P
-
Just the man I needed a reply from. Ok thats sweet now, but i got this
'scalar |#|bool array string 0xfcffffef': Error Unknown operator bool
....wtf excuse me?
I'm running 1.91 - i have 2 versions of your script, which should i hvae?
-
If your not sure which one to use, go download the latest one from the ed depot. Due to very popular demand, I've posted an example mission in the ed depot along with the script.
http://www.ofpec.com/editors/resource_view.php?id=301
-
I am so retarded, i can't even look at your one, and copy it correctly. Still not workin eh. I wont even respawn now. Before i had not init.sqs file. Man im puzzled this editing thing is annoying.