Difference between revisions of "CMissile"

From Project X Wiki
Jump to: navigation, search
 
(No difference)

Latest revision as of 04:19, 18 March 2010

Up one category:
Scripting


Worms Armageddon class

Class name: CMissile
Description: Describes missile
Constructor: void CMissile(CObject* parent, CWeaponLaunch* ldata, CShootDesc* sdata)
Derived From: CGObject

Describes missile of any launching weapon.

Fields

int ActionType; //If you set this to 3, your charge will pick crates.
CShootDesc       initdesc;
CWeaponLaunch    launchdata;
int JumpAngle;  
int JumpForce;
int Timer;
bool IsFlying;
void Jump(int Angle, int Force);
void StartFly();
void Roam();
void ExplodeAt(fixed x, fixed y);

There are almost no known fields. Utils.pxl adds weap field, that references to weapon that fired missile.


Methods

ExplodeAt

void ExplodeAt(fixed x, fixed y);

Provokes explosion of missle at point x, y. Use it for custom explosions.