Difference between revisions of "FireWeapon"

From GECK

 
m (holy god this function is useful)
Line 19: Line 19:
 
[[Category:Combat Functions]]
 
[[Category:Combat Functions]]
 
[[Category:AI Functions]]
 
[[Category:AI Functions]]
 +
[[Category:Godsend Functions]]

Revision as of 19:43, 12 December 2008

Description

FireWeapon fires a projectile from any specified reference.

Syntax

ref.FireWeapon weapon_ID

Examples

Turret01REF.FireWeapon WeapGrenadeFrag

Object named Turret01 will fire a Frag Grenade.

Notes

  • The fired projectile should spawn in the middle of the ref and go straight out in the direction the ref is pointing, UNLESS it has a dummy node called "ProjectileNode" (the name is dependent on the weapon's data in the editor but "ProjectileNode" is the default). If the ref has such a node the projectile will come out of it instead.
Personal tools