The problem is, When you press escape and goto the Jedi Powers option on the menu the powers don't show up right. Also, if you save the game, exit the level and then start it from the save only the last power used shows up. What is causing this and how do I solve it?
Here's the cog to help.
# Level master COG
#
# [DB]
# THIS COG IS NOT MADE, DISTRIBUTED, OR SUPPORTED BY LUCASARTS ENTERTAINMENT COMPANY.
##########################################################
symbols
message startup
message timer
int player local
end
##########################################################
code
startup:
// Register COG as master COG
SetMasterCOG(GetSelfCOG());
player = GetLocalPlayerThing();
// Initialise Goals
SetInv(player, 99, 1000);
// Give player weapons and ammo
SetInv(player, 1, 1); // fists
SetInv(player, 2, 1); // briar
SetInv(player, 10, 1); // Lightsaber
SetInv(player, 11, 50); // Energy
// Initialize weapon.
SetFireWait(player, -1);
SetMountWait(player, 0);
SetCurInvWeapon(player, 0);
SelectWeapon(player, AutoSelectWeapon(player, 2));
SetTimer(15);
timer:
// Rank 4
SetInv(player, 20, 4.0);
SetInv(player, 14, 4*50);
// Force Jump, level 4
SetInv(player, 21, 4.0);
SetInvAvailable(player, 21, 1);
// Force Speed, level 2
SetInv(player, 22, 2.0);
SetInvAvailable(player, 22, 1);
// Force Seeing, level 0
//SetInv(player, 23, 1.0);
//SetInvAvailable(player, 23, 1);
// Force Pull, level 0
//SetInv(player, 24, 1.0);
//SetInvAvailable(player, 24, 1);
// Force Healing, level 3
SetInv(player, 25, 3.0);
SetInvAvailable(player, 25, 1);
// Force Throw, level 3
SetInv(player, 30, 3.0);
SetInvAvailable(player, 30, 1);
jkSyncForcePowers();
Return;
end
Here's the cog to help.
# Level master COG
#
# [DB]
# THIS COG IS NOT MADE, DISTRIBUTED, OR SUPPORTED BY LUCASARTS ENTERTAINMENT COMPANY.
##########################################################
symbols
message startup
message timer
int player local
end
##########################################################
code
startup:
// Register COG as master COG
SetMasterCOG(GetSelfCOG());
player = GetLocalPlayerThing();
// Initialise Goals
SetInv(player, 99, 1000);
// Give player weapons and ammo
SetInv(player, 1, 1); // fists
SetInv(player, 2, 1); // briar
SetInv(player, 10, 1); // Lightsaber
SetInv(player, 11, 50); // Energy
// Initialize weapon.
SetFireWait(player, -1);
SetMountWait(player, 0);
SetCurInvWeapon(player, 0);
SelectWeapon(player, AutoSelectWeapon(player, 2));
SetTimer(15);
timer:
// Rank 4
SetInv(player, 20, 4.0);
SetInv(player, 14, 4*50);
// Force Jump, level 4
SetInv(player, 21, 4.0);
SetInvAvailable(player, 21, 1);
// Force Speed, level 2
SetInv(player, 22, 2.0);
SetInvAvailable(player, 22, 1);
// Force Seeing, level 0
//SetInv(player, 23, 1.0);
//SetInvAvailable(player, 23, 1);
// Force Pull, level 0
//SetInv(player, 24, 1.0);
//SetInvAvailable(player, 24, 1);
// Force Healing, level 3
SetInv(player, 25, 3.0);
SetInvAvailable(player, 25, 1);
// Force Throw, level 3
SetInv(player, 30, 3.0);
SetInvAvailable(player, 30, 1);
jkSyncForcePowers();
Return;
end