ok so this is a cog generated by the Goal! plugin.. It does what I want it to do, but I'd like it to do more. I'd like the cog to set another "walkplayer" as startpoint if the player dies. Kinda like a checkpoint. Thing0 is the walkplayer and the start of the level.. and when the player get to some checkpoint, it runs the goal script AND, i would like if it could set ThingX as the new walkplayer... anyways... how can I do that?
# Jedi Knight Goal Cog Script - Generated by Goal!, Jed Plugin by dr0id <http://hem2.passagen.se/thesj/dr0idstuff/>
#
# PREVIEWCOG_GOALS.COG
#
# Goals:
# 0 - Checkpoint One
#
# []
#
# This script is NOT supported by LucasArts Entertainment Company
# ==================================================================
symbols
int player local
message startup
message entered
sector sectorGoal0
sound soundGoal0=accomplish1.wav local
int done0=0 local
end
# ==================================================================
code
startup:
player = GetLocalPlayerThing();
SetInv(player, 99, 1000);
SetGoalFlags(player, 0, 1);
Return;
entered:
// Goal: 0
if((!done0) && (GetSenderRef() == sectorGoal0))
{
jkPrintUNIString(player, 350);
PlaySoundThing(soundGoal0, player, 1.0, -1, -1, 0);
SetGoalFlags(player, 0, 2);
SetGoalFlags(player, 0, 1);
done0 = 1;
Sleep(5);
jkEndLevel(1);
Return;
}
Return;
end
------------------
_ _______ _
BladeSinger
Sith Domination (http://www.massassi.net/levels/files/1496.shtml)
# Jedi Knight Goal Cog Script - Generated by Goal!, Jed Plugin by dr0id <http://hem2.passagen.se/thesj/dr0idstuff/>
#
# PREVIEWCOG_GOALS.COG
#
# Goals:
# 0 - Checkpoint One
#
# []
#
# This script is NOT supported by LucasArts Entertainment Company
# ==================================================================
symbols
int player local
message startup
message entered
sector sectorGoal0
sound soundGoal0=accomplish1.wav local
int done0=0 local
end
# ==================================================================
code
startup:
player = GetLocalPlayerThing();
SetInv(player, 99, 1000);
SetGoalFlags(player, 0, 1);
Return;
entered:
// Goal: 0
if((!done0) && (GetSenderRef() == sectorGoal0))
{
jkPrintUNIString(player, 350);
PlaySoundThing(soundGoal0, player, 1.0, -1, -1, 0);
SetGoalFlags(player, 0, 2);
SetGoalFlags(player, 0, 1);
done0 = 1;
Sleep(5);
jkEndLevel(1);
Return;
}
Return;
end
------------------
_ _______ _
BladeSinger
Sith Domination (http://www.massassi.net/levels/files/1496.shtml)
BladeSinger
-Are you sure this is the Sci-Fi Convention? It's full of nerds!
-Are you sure this is the Sci-Fi Convention? It's full of nerds!