Jump to content
Sign in to follow this  
namman2

weapon in init script

Recommended Posts

i want the game to chech wich weapons i'm using (with out the need to fire it ) and display it's name in the cockpit (not in the hud but whit set objecy texture thing) but it's not working so pls any help is welcome

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

_plane = _this select 0

_weaponType = [(weapons plane) select 0]

#define gun "loBo_M61_20mm_gun"

#define pyth4 "LoBo_Python4rail6"

#SlowLoop

~.1

?(_weaponType == "loBo_M61_20mm_gun"): _plane setobjecttexture[0, "\LoBoF16\smshud\gun.paa"]

? (_weaponType == "LoBo_Python4rail6"): _plane setobjecttexture[0, "\LoBoF16\smshud\pyth4.paa"]

goto "SlowLoop"

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  

×