Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Skin.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Title.php on line 132

Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Title.php on line 219
JK Hub - [Reference]

COG Verb - jkSetSaberInfo

Sets a creature's saber settings. jkSetSaberInfo() only sets what the saber will look like when it is ignited. The actual collision settings for the saber are set with jkEnableSaber(), and the ignition of the saber is handled by Jedi Knight Flags. Syntax:

  jkSetSaberInfo(creature, side_mat, tip_mat, base_rad, tip_rad, length, wall, blood, saber);

side_mat: This is the mat that will be displayed on the saber's side.

tip_mat: This is the mat that will be displayed on the saber's base and tip surfaces.

base_rad: This is the radius of the saber at its base in JKUs. Player's Default: 0.0032.

tip_rad: This is the radius of the saber at its tip in JKUs. Player's Default: 0.0018.

length: This is the length of the saber in JKUs. Player's Default: 0.12.

wall: This is the template that is created when the saber hits a wall. Default: +ssparks_wall.

blood: This is the template that is created when the saber hits a creature. Default: +ssparks_blood.

saber: This is the template that is created when the saber collides with another saber. Default: +ssparks_saber.

  • Create:
This page was last modified 07:46, 7 April 2006.   This page has been accessed 959 times.