<RetVar> = A variable where the requested information is stored.
<Var/Ware> = The ware, 'Laser', that you wish to get the bullet speed for.
Each Laser or Mass Driver has a 'projectile', the speed in m/s of this projectile is returned for the laser selected by the <Var/Ware>.
The <RetVar> will be an integer and as such can be used in further calculations as needed.
Example:
$laser.speed = get bullet speed of laser Impulse Ray Emitter
In this case, $laser.speed will be the speed (muzzle velocity) of the projectile fired by an Impulse Ray Emitter type laser. This will be an integer type value.
Special Uses:
This command can also be used to retrieve the flight speed of Missiles from their ware entry also. Use the command as for a Laser, but in <Var/Ware> insert the required Missile instead.
Command Location:
- »» General Object Commands
- »» Weapon Information
<RetVar> = get bullet speed of laser <Var/Ware>
- »» Weapon Information