Seven Towers: UCC Reference

USECODE INTRINSICS

UI_fire_projectile(object obj, int dir, int proj, int attpts, int weapon, int ammo)
obj->fire_projectile(int dir, int proj, int attpts, int weapon, int ammo)

Causes the given object to fire a high-speed missile in the supplied direction.

Parameters

objThe object that will fire the projectile.
dirNumeric value indicating the direction in which the projectile will be fired.
projThe shape in 'SHAPES.VGA' of the projectile to be fired.
attptsNumeric value determining the likelihood that the missile will hit. Works like the 'att' parameter in the roll_to_win intrinsic in a contest against the target's COMBAT property.
weaponThe shape in 'SHAPES.VGA' whose weapon information will be used when the missile hits.
ammoThe shape in 'SHAPES.VGA' whose ammunition information will be used when the missile hits.

The direction into which the projectile is filed is the 8-cardinal-point direction in which the projectile will travel. It can be one of the following values:

NORTH = 0NORTHEAST = 1EAST = 2SOUTHEAST = 3SOUTH = 4
SOUTHWEST = 5WEST = 6NORTHWEST = 7

Related intrinsics

See also