View Single Post
Re: "What weapon am I using" script
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: "What weapon am I using" script - 09-03-2004

Scripts can only do what a normal client is allowed to do, hence you can not display text at arbitrary locations on the screen nor display sprites or icons. What you can do though, is record the name of each weapon in a .WAV sound file, put them all in the sounds folder and then have your script issue the command:
play "weapon_name.wav"
when you select this weapon.
Since play commands are client only commands only you will hear that sound, it will not be propagated on the network.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote