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 → Loading new player models?
Loading new player models?
2001-10-06, 4:48 AM #1
Hi,
I have limited knowledge of cogs and i was wondering, I need to know how to program a cog for my mod Dragon ball AF, it needs to Load a new player model and can revert to the old one, for example i want Goku to be able to go Super Saiyan and change back, but the same cog be able to make Vegeta go super sayin and revert, is this posible? i know they did something like this for Art of the Lightsaber,but it was buggy in MP

Thanks,
Nytro
2001-10-06, 5:15 PM #2
I dont have time to write the whole cog, but this should help.. The real key is to save the current model before switching, like this:


//Some event...

Player = Getlocalplayerthing();
Oldmodel = Getthingmodel(Player);
Setthingmodel(Player, Newmodel);

//Some event...

Setthingmodel(Player, Oldmodel);

"Oldmodel" becomes the current model, when your done with the new model, it swaps back.

Note, the two models would have to use the same Pup file, otherwise you would have to change that as well..

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-10-07, 8:05 AM #3
Thanks, GBK it helped worlds, now all i have to do is make it give you some Mana and it will be Finished!

↑ Up to the top!