sfc.itzhak 0 Posted August 28, 2006 i am making an mfd.. i make a tex with all the wepons there and i wanted to change the tex evrey time a weapon fired so i tried to do it togheter with the firemissle but it dosent work.. sample firemissile Quote[/b] ] ; If it's just the gun, then get out?(_weapon == "AV8B_ADEN"): goto "Exit" ; Count how much ammo we've got left _mavcount = _plane ammo "ZZZ_MavRail" _swcount = _plane ammo "ZZZ_AIM9Rail" ; If we've launched a Sidewinder then go to that sequence ? (_ammoname == "ZZZ_AIM9"): goto "SWCheck" ? (_mavcount == 5) : goto "mavAaway" ? (_mavcount == 4) : goto "mavBaway" ? (_mavcount == 3) : goto "mavCaway" ? (_mavcount == 2) : goto "mavDaway" ? (_mavcount == 1) : goto "mavEaway" ? (_mavcount == 0) : goto "mavFaway" #SWCheck ? (_swcount == 1) : goto "swAaway" ? (_swcount == 0) : goto "swBaway" #mavAaway _plane setobjecttexture[8, ""] _plane setobjecttexture[0, ""] _missmove = -4 goto "MoveMissile" #mavBaway _plane setobjecttexture[8, "\av8b\hud\mav2less.paa"] _plane setobjecttexture[1, ""] _missmove = 4 goto "MoveMissile" the config Quote[/b] ] class av8b: Vehicle { sections[]= {"_mavA", "_mavB", "_mavC", "_mavD", "_mavE", "_mavF", "_swA", "_swB", "_rmfd","_sw", "zasleh"}; }; what did i did wrong? thanks sfc.itzhak Share this post Link to post Share on other sites
Chris Death 0 Posted August 29, 2006 hmm - you know that _variables are local variables inside the script where they are assigned to? Maybe i mix something up now since i'm not an addon config pro but in mission editing you cannot assign something like: _myvar = blabla and in another script refer to it. I doubt that in scripts attached to addons it differs. Try global variables without the underscore in front of. ~S~ CD Share this post Link to post Share on other sites
nephilim 0 Posted August 29, 2006 some thumb rules cfgmodels must be present in config.cpp classname and p3d name of the object must be the same eg Cfgclass Vehicles class F16: "my_f16" <<<<classame (without qoutes) model = "myaddon/my_f16.p3d" <<<<p3d name it wont work other wise also keep the order of the selections intact eg hidden selections ={A,B,C,D,E,F} correspond with following numbers for setobjecttexture 0,1,2,3,4,5 so if you want to setobjectexture part A you write :this setobjecttexture [0,"\myaddon\texture.paa"] or for part D this setobjecttexture [3,"\myaddon\texture.paa"] cheers Share this post Link to post Share on other sites