Ok this is as simple asit gets it should only work the kyle model right as it is but it don't work it crashes to windows when activated, at the buttom I included a debug that did't tell me much. I need to get the name of the model the player is and then use it as the name for the model I want to change to. anyway here is the cog if anyone can find the error or a work around.
# Jedi Knight Cog Script
#
# Bin 118
# Not endorsed by LucasArts Entertainment Co.
symbols
thing player
model cky=kyc.3do local #Katarn
message startup
message activated
end
# ========================================================================================
code
startup:
player = GetLocalPlayerThing();
old = GetThingModel(player);
Return;
# ........................................................................................
activated:
player = GetSourceRef();
if(!(GetInv(player, 118))) Return;
you = c[old];
Print("model shift");
SetThingModel(player, c[you]);
# SetThingModel(player, c[GetThingModel(player)]);
# SetThingModel(player, [GetThingModel(player)]);
# I tried these three versions with luck
Return;
# ........................................................................................
end
#stdStrTable.c(177): The key 'GUI_JEDIONLY_HINT' is in the string table 'ui\jkstrings.uni' more than once.
# >>>"GUI_JEDIONLY_HINT" 0 "All players are Jedi; the maximum rank is determined by the server"
#
#Premature 'END' found after only 26 lines in 'misc\sithStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 375 lines in 'ui\credits.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
# Jedi Knight Cog Script
#
# Bin 118
# Not endorsed by LucasArts Entertainment Co.
symbols
thing player
model cky=kyc.3do local #Katarn
message startup
message activated
end
# ========================================================================================
code
startup:
player = GetLocalPlayerThing();
old = GetThingModel(player);
Return;
# ........................................................................................
activated:
player = GetSourceRef();
if(!(GetInv(player, 118))) Return;
you = c[old];
Print("model shift");
SetThingModel(player, c[you]);
# SetThingModel(player, c[GetThingModel(player)]);
# SetThingModel(player, [GetThingModel(player)]);
# I tried these three versions with luck
Return;
# ........................................................................................
end
#stdStrTable.c(177): The key 'GUI_JEDIONLY_HINT' is in the string table 'ui\jkstrings.uni' more than once.
# >>>"GUI_JEDIONLY_HINT" 0 "All players are Jedi; the maximum rank is determined by the server"
#
#Premature 'END' found after only 26 lines in 'misc\sithStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 375 lines in 'ui\credits.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.