I tried to make it so that you could press a button and the game would stop the player, freeze him/her, and then switch to a ghost thing in the level. Then, when the button is pressed again, it'd switch back.
I did a rather hack-job of using the force_jump.cog as a base, and I've no experience with creating custom powers and whatnot. What have I done incorrectly?
I did a rather hack-job of using the force_jump.cog as a base, and I've no experience with creating custom powers and whatnot. What have I done incorrectly?
Code:
# Jedi Knight Cog Script
#
# FORCE_JUMP.COG
#
# FORCEPOWER Script - Force Jump
# Basic Power
# Bin 21
#
# This ability is controlled by the length of the key press.
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
symbols
thing player local
thing cam1
message startup
message activated
message deactivated
message cyccam
end
# ========================================================================================
code
startup:
player = GetLocalPlayerThing();
Return;
# ........................................................................................
activated:
Call cyccam;
SetCameraFocus(0, cam1);
StopThing(player);
SetActorFlags(player, 0xa00000);
Return;
# ........................................................................................
deactivated:
SetCameraFocus(0, player);
ClearActorFlags(player, 0xa00000);
Return;
# ........................................................................................
cyccam:
if((GetCurrentCamera() != 0)) {
CycleCamera();
}
return;
# ........................................................................................
endthe idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken

