Home   Help Search Login Register  

Author Topic: Ammo Crate Script Bug  (Read 529 times)

0 Members and 1 Guest are viewing this topic.

Offline rhysduk

  • Former Staff
  • ****
Ammo Crate Script Bug
« on: 10 Jul 2003, 11:50:01 »
Hi all !

I want to fill a ammo crate with some weapons using a script.. I would use the Init Field of teh Ammo box but i cant be bothered. its easier ina  script..

Anyway i have mde the script and it starts with :-

_crate = _this Select 0

when i preview the mission i got the following error :-

Error Select : Type Object, expected Array

I cant see any thing wrong with this but i was hoping some one else could

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Ammo Crate Script Bug
« Reply #1 on: 10 Jul 2003, 13:30:39 »
Do you pass the weaponcrates name in to the script when executing it? for example  [cratename] exec "fillcrates.sqs"

Maybe you should show us the whole script and some more info?
Not all is lost.

Offline rhysduk

  • Former Staff
  • ****
Re:Ammo Crate Script Bug
« Reply #2 on: 10 Jul 2003, 16:08:36 »
I knew it was simple liek this....

thanks mate ... its working now ;D

See ya round... Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)