I want to set my player flying in the air. And this func. SetPhysfl() doesn't work.
symbols
thing player local
message startup
message activated
message deactivated
keyframe fly=kysbswim.key local
end
code
activated:
player = GetLocalPlayerThing();
ls = playkey(player, fly, 1, 0x0);
SetPhysicsFlags(player, 0x2000);
SetActorExtraSpeed(player, -1.21);
Return;
deactivated:
ClearPhysicsFlags(player, 0x2000);
SetActorExtraSpeed(player, 0);
Stopkey(player, ls, 0);
Return;
end
symbols
thing player local
message startup
message activated
message deactivated
keyframe fly=kysbswim.key local
end
code
activated:
player = GetLocalPlayerThing();
ls = playkey(player, fly, 1, 0x0);
SetPhysicsFlags(player, 0x2000);
SetActorExtraSpeed(player, -1.21);
Return;
deactivated:
ClearPhysicsFlags(player, 0x2000);
SetActorExtraSpeed(player, 0);
Stopkey(player, ls, 0);
Return;
end