Jump to content
Sign in to follow this  
wld427

make texture reappear

Recommended Posts

I am using the below script to make the missile texture "dissapear" on launch. The problem i have is when the launcher rloads its magazine the rockets do not appear banghead.gif anybodu hav an idea how to script it in like a reload script?

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

_weapon = _this select 1

_weaponfired="checkM970"

?_weapon = _weaponfired :goto "check_weapon_status"

#check_Weapon_status

?_M970 ammo _weapon == 1 :goto "fireone"

?_M970 ammo _weapon == 0 :goto "firetwo"

exit

#fireone

_M970 setobjectTexture [1,""]

exit

#firetwo

_M970 setobjectTexture [0,""]

exit

Share this post


Link to post
Share on other sites

Think you need to be doing something like this;

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

_M970 setobjecttexture[2, "\M970\blue045.paa"]

_M970 setobjecttexture[3, "\M970\grey105.paa"]

_M970 setobjecttexture[4, "\M970\OBmotor.paa"]

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  

×