This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Bz fireWorldWep: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Add some more information |
||
| Line 13: | Line 13: | ||
| param4 = tilt | | param4 = tilt | ||
| param4type = float | | param4type = float | ||
| param4desc = The tilt of the weapon. | | param4desc = The tilt of the weapon in radians. | ||
| param5 = direction | | param5 = direction | ||
| param5type = float | | param5type = float | ||
| param5desc = The direction of which to fire the world weapon. (rotation) | | param5desc = The direction of which to fire the world weapon in radians. (rotation) | ||
| param6 = shotID | | param6 = shotID | ||
| param6type = int | | param6type = int | ||
| param6desc = Shot ID of the world weapon. Each shot is given a unique shot ID | | param6desc = Shot ID of the world weapon. Each shot is given a unique shot ID for shot tracking. | ||
| param7 = dt | | param7 = dt | ||
| param7type = float | | param7type = float | ||
| param7desc = | | param7desc = Delay time. How many seconds the weapon waits before firing. | ||
}} | }} | ||
Revision as of 19:16, 17 May 2009
void bz_fireWorldWep (const char* flagType, float lifetime, float *pos, float tilt, float direction, int shotID, float dt)
Fires a world weapon.
Parameters:
flagType - Flag type the world weapon will fire with.
lifetime - How long the world weapon will "live".
*pos - Position the world weapon will fire from.
tilt - The tilt of the weapon in radians.
direction - The direction of which to fire the world weapon in radians. (rotation)
shotID - Shot ID of the world weapon. Each shot is given a unique shot ID for shot tracking.
dt - Delay time. How many seconds the weapon waits before firing.