Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Will the SetThingModel code work for the player?
Will the SetThingModel code work for the player?
2002-03-05, 3:00 PM #1
I just tried on a whim to get the player model to change. I added a cog that would send the user0 message to the bryar pistol and made the user0 in the Bryar cog change kyle into the OneEye. It didn't work and I'm not sure why. I did declare the model in the symbols section. This left me wondering if it was possible.
2002-03-05, 3:32 PM #2
You can use 'Sethingmodel()' on ANY object. Post the cog.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-06, 4:40 PM #3
Than how do people change the player modelall the time? I'm confused.
my cog was similar to:
user0:
if(GetThingModel(Getlocalplayerthing())==kybike)
SetThingModel(GetLocalPlayerThing(),kyboard);
if(GetThingModel(GetLocalPlayerThing())==kyboard)
SetThingModel(GetLocalPlayerThing(),kybike);
Return;
2002-03-07, 9:50 AM #4
That code looks alright. Make sure you have your models defined correctly and that the user0 message is being called. Also make sure that your player does in fact have one of the models in the first place.

------------------
Author of the Jedi Knight DataMaster.
Visit Saber's Domain.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-03-07, 6:49 PM #5
Okay, I feal stupid now.

↑ Up to the top!