[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.3.7 Projectile

This is a property class to control projectiles. It allows to set movement in some direction and will report back when it hits something.

Property Class Details

General Information

PcProjectile can be used to handle projectiles in an easy way. It can be set to go in some direction, and will send a pcprojectile_hit message to the behaviour when it hits something. To start movement the Start api function or cel action must be used.

Maximum distance and maximum hits can be specified, and when either of both is reached a pcprojectile_stopped message will be sent to the behaviour.

PcProjectile depends on having pcmove.linear and pcobject.mesh present on the entity to work.

This document was generated using texi2html 1.76.