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 → If Model==...
If Model==...
2002-12-16, 3:42 PM #1
I need a cog that does some things when the player's model is 1 of 5. So, if the guys model is this, do something, if it's a different one do something else, with support for five models. Thanks in advance.
Daddy, why doesn't this magnet pick up this floppy disk?
2002-12-16, 3:57 PM #2
Code:
if(GetThingModel(thing) == number1)
{
   dostuff;
}

if(GetThingModel(thing) == number2)
{
   dostuff;
}
if(GetThingModel(thing) == number3)
{
   dostuff;
}

if(GetThingModel(thing) == number4)
{
   dostuff;
}

if(GetThingModel(thing) == number5)
{
   dostuff;
}

Declare all of those number things in the symbols section as the models you are inquiring about.
2002-12-16, 4:08 PM #3
Thanks. And the thing in the GetThingModel would be the player right?
Daddy, why doesn't this magnet pick up this floppy disk?
2002-12-17, 1:53 AM #4
yeah, but at startup you need to wrote: player = jkGetLocalPlayer();
2002-12-19, 9:38 AM #5
Right.

↑ Up to the top!