Jump to content
Sign in to follow this  
wld427

Missile disapears at Launch

Recommended Posts

i am still working on this SAM unit fellas and what i am haing a problem with is one missile disappears after launch, but the second one does not. Then they do not reappear on reload. Can you look at my scripts fellas and take a look?

my cfgvehicle

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

hiddenSelections[] = {"Barak1","Barak2"};

hiddenSelectionsTextures[] = {"M960\Barak.paa"};

setmissiles.sqs

M960 = _this select 0

_M960 setobjecttexture [0,"\M960\Barak.paa"]

_M960 setobjecttexture [1,"\M960\Barak.paa"]

exit

missilefired.sqs

_M960 = _this select 0

_weapon = _this select 1

_weaponfired="check960"

?_weapon = _weaponfired: goto "check_weapon_status"

#check_Weapon_status

?_M960 ammo "check960" ==1: goto "fireone"

?_M960 ammo "check960" ==0: goto "firetwo"

exit

#fireone

_M960 setobjectTexture [1,""]

exit

#firetwo

_M960 setobjectTexture [0,""]

exit

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×