OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: paddy on 16 Jan 2006, 18:25:19
-
Remember in the cutscene in the hangar in one of the BIS campaigns, the charachter had a phone in his hand. I'm looking for the classname of the phone .. i have the switchmove required (FxstandtelLoop) but I just cant find the classname of the phone!!
Please help me OFPEC!!
-
Hmmm....it depends on what you want.
Under cfgVehicles there is the complete telephone unit, base with handset included.....classname is "Phone".
Also under cfgVehicles there is the base unit only........classname is "PhoneBase"
Lastly, under cfgWeapons there is the handset only...classname is "Phone".
cfgVehicles
class All
class Thing: All{};
class Table: Thing{};
class Phone: Table (Complete Telephone)
class PhoneBase: Table (Telephone Base)
cfgWeapons
class Default
class Binocular: Default{};
class Phone: Binocular (Telephone Handset)
Too much info I know.........you require the last one, the one under cfgWeapons and possibly the base unit under cfgVehicles too.
Planck
-
Yes, Planck is right, you want the last one, add it to the unit like this:
UnitName addmagazine "Phone"
UnitName addweapon "Phone"
Not sure if addmagazine is neccessary in this case, I always put it in because I can never remember.
-Pilot
EDIT:
I'm thinking you already knew about the addweapon part...so I guess my post is a bit redundant...
-
Phonemagazine isn't needed (I think it causes a crash, because there are no phonemags). Otherwise Pilot is correct.