Notes on Misc Verbs


The Lightsaber Effect

The lightsaber is a special weapon that is managed by several Cog verbs and JK Flags. jkSetSaberInfo() can be used to adjust the visiual settings of the lightsaber, but this verb does not have to be used normally because JK will use default settings.

The 0x4 JK Flag ignites the saber and the 0x1 JK Flag tells the exe that the creature has a saber. jkEnableSaber() allows the saber to damage things, but does not allow the saber to collide. The saber will not collide until the 0x2 JK Flag is assigned to the creature. This 0x2 flag is normally assigned while the saber fire keyframes are played.1

After the saber is swung, jkDisableSaber() prevents the saber from damaging. And when the saber is deselected, the 0x8 JK Flag turns off the saber and then clears the 0x1 flag and itself.

Note that the saber can damage a creature once for every time the 0x2 flag is set.

Targetting Reticle

The targeting reticle is composed of the three rings that expand and contract around a point. It is used to select targets for force powers.

jkSetTargetColors() sets the color to be used by each ring, jkSetTarget() puts the reticle on a thing, and jkEndTarget() removes the reticle. You cannot have more than one targeting reticle in the game simultaneously.


1Saber fire anims have special Keyframe Markers that tell the exe which frames assign and clear the 0x2 flag.