Home   Help Search Login Register  

Author Topic: Universal Weapons Respawn Script HELP!  (Read 1628 times)

0 Members and 1 Guest are viewing this topic.

Dr Venkman

  • Guest
Universal Weapons Respawn Script HELP!
« 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.  :-\

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Universal Weapons Respawn Script HELP!
« Reply #1 on: 15 Apr 2003, 07:31:39 »
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
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Offline DrStrangelove

  • Members
  • *
  • Mr.Creative
Re:Universal Weapons Respawn Script HELP!
« Reply #2 on: 15 Apr 2003, 20:46:56 »
*hurries off to DL script*

omg, waited forever for such a script...  :P

Dr Venkman

  • Guest
Re:Universal Weapons Respawn Script HELP!
« Reply #3 on: 16 Apr 2003, 03:46:44 »
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?

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Universal Weapons Respawn Script HELP!
« Reply #4 on: 16 Apr 2003, 06:01:26 »
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

"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Dr Venkman

  • Guest
Re:Universal Weapons Respawn Script HELP!
« Reply #5 on: 16 Apr 2003, 13:38:33 »
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.