SC_SpawnProjectile

Usage

void SC_SpawnProjectile( int ProjectileTypeNumber, int x, int y, int z, float SwivelAngle, float TiltAngle, int range, int OwnerObjectId)


Summary

Spawns a projectile.


More Information

This function is called constantly during the game as all in-game projectiles are scripted.

- ProjectileTypeNumber = The type of projectile to launch (get this using SC_GetProjectileTypeNumber).
- x, y, z = The origin coordinates of the projectile.
- SwivelAngle = The horizonal angle (direction of the projectile.
- TiltAngle = The upwards angle of the projectile.
- range = How far the projectile will travel before being removed.
- OwnerObjectId = The object ID that will not get hit or hurt by this projectile (use -1 for hurt apply - damage to all objects).


Example

// launch a projectile from the top corner of the map 10 units above the ground heading Southeast (96) with a range of 600.
SC_SpawnProjectile( SC_GetProjectileTypeNumber("bullet"), 0, 10, 0, 96, 0, 600, -1);


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 by James Bunting
www.jbgames.com/games/rod3d/

This page was automatically generated by jbgames Script Docs Generator