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 JK 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. Default: 0.003.

tip_rad: This is the radius of the saber at its tip in JKUs. Default: 0.001.

length: This is the length of the saber in JKUs. Default: 0.1.

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.