Posted By: MDC
actions in your script - 07/26/06 11:06
How do i put knew actions in my script, like where exactly do i write them or just anyway. give detail. im kinda slow.
var is_swim_mode_on = 0;
function toggle_swim_mode() {
beep;
if (is_swim_mode_on == 1) {
is_swim_mode_on = 0;
bipedPhy01_gravity = 9;
msg_show ("Fly mode is off", 5);
} else {
is_swim_mode_on = 1;
bipedPhy01_gravity = 0;
msg_show ("Fly mode is on: press Space to jump/move up, and 'c' to move down", 5);
}
}
on_f8 = toggle_swim_mode;
action PlBiped01
{
if (is_swim_mode == 1) {
swim_mode();
} else {
// the rest of PlBiped01 action code
}
}
action PlBiped01
{
while(my != NULL)
{
if (is_swim_mode == 1)
{
swim_mode();
} else {
// the rest of PlBiped01 action code
}
wait(1);
}
}