OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: rhysduk 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
-
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?
-
I knew it was simple liek this....
thanks mate ... its working now ;D
See ya round... Rhys