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 → I'm having trouble in cogs. Need Help.
I'm having trouble in cogs. Need Help.
2004-04-16, 3:29 AM #1
I'm trying to make the walkplayer to Morph into a object he touches.Only JK.
My Main Objective------ Is to make Jk Real......No i mean Really Real.
2004-04-16, 7:10 AM #2
SetThingModel(GetThingModel(GetSenderRed()));?

------------------
I used to believe that we must fight the future, lest change come without our consent. I was wrong. The truth is that we must embrace the future, for only with change can we remain the same.
And when the moment is right, I'm gonna fly a kite.
2004-04-16, 8:09 AM #3
I haven't tried something like this before so... I might be wrong.
(a common typo by GBK) It is GetSenderRef();, and aren't there two params in the SetThingModel verb?

I'm guessing you can put this in the kyle.cog (add "message touched" to the symbols section)
Code:
touched:
SetThingModel(GetSenderRef(), GetThingModel(GetSourceRef()));
return;

^^^ Based on GBK's example.

[edit] Ooops I think I misunderstood you. [http://forums.massassi.net/html/redface.gif]
Yeah try the code below. (GBK's code with an added param and condition statement so that we don't change projectiles and other actors [http://forums.massassi.net/html/wink.gif] )
Code:
if(GetSourceRef() == GetLocalPlayerThing())
     SetThingModel(GetLocalPlayerThing(), GetThingModel(GetSenderRef()));

Add it in the "touched" message of the class cog of the thing you want the player to morph into.
(oops, did GetSenderRed() [http://forums.massassi.net/html/redface.gif])

------------------
Bond, Power, CA, The Force, Saber, IC, Epic, Oily Mexican Food, BG, /\ |> /\ /\/\, Sentences.
Now you know where I've been.

[This message has been edited by Darth Slaw (edited April 16, 2004).]
May the mass times acceleration be with you.

↑ Up to the top!