OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: onionres on 22 Jun 2004, 06:17:09
-
I'm making a 'Top Gun' style mission of OFP and i need some help with the following:
1. How on earth do you spawn addons using createvehicle?
2. Can i give the Su25 in the game some AA missiles?
-
find the classname of the addon vehicle by creating a test mission with it in and then scanning the mission.sqm for its entry
and then when you have it, createvehicle in the same way you would for any vehicle
_vclpos = getpos (Gamelogic called whatever)
_vcl = "Vehicleclassname" createVehicle _vclpos
removeallweapons _vcl
_vcl addweapon "WEAPONCLASSNAME"