OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Black Death on 24 Apr 2004, 14:40:28
-
Hello everybody! 8)
I just joined this forum and everybody seems real nice. I am starting to get into making my own missions and there are obviously problems I am going to come across in doing so. ???
My problem is that I want to have a soldier weapon his aa launcher to be ready for the helicopter that he is going to shoot down. I am assuming that it is an action command, yet I can't get it to work and I have tried many diffrent combinations.
What do you guys think? Can you help me? :help:
-
Im doing taht type of thing in a mission im making now.
All ive dun( dnt know if this is the correct way but its works for me), is in the init field of the aa guy ive put :
this setBehaviour "COMBAT", and wen a helo goes by the aa guy shoots it down. It worked for me, there mayb a more technical way though. ;)
-
Put this in the approprtiate place : - (trigger or init feild of unit)
unit selectWeapon weaponname
unit is the name of the unit you want to weapon his aa launcher.
weaponname is the name of the weapon!
EG rhys selectWeapon "HK"
Weapon Names:
LAWLauncher
RPGLauncher
CarlGustavLauncher
AT4Launcher
AALauncher
9K32Launcher
AT3Launcher (not sure on this one)
Of course you need to use the one that corresponds with the weapon that your unit has.
Rhys
-
rhys, thanks! I can put this to use myself. "Selectweapon" - never seen before... ( i should have paid more attention to the ComRef guide!)
-
Hey, thanks! I'll be able to use that command with more than just the mission I'm making. I'm excited ;D