Re: C++ void On_Player_Death??? [message #432257 is a reply to message #432193] |
Wed, 07 July 2010 08:05 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma:
|
General (3 Stars) |
|
|
It seems that Change_Spawn_Char's first parameter is expecting an integer, not a GameObject. So it's either after the playe ID, or possibly the team type. If it wants the team type, then it's going to be setting the spawn character globally, and you'll have to do something a bit different to get individuals to have different spawn characters...
//edit
Looking at the use of it in gmmain.cpp it's after the team type, not the player ID.
I am guessing you want to only set the default spawn character for the people on GDI that was killed, and normal Nod players to still be soldiers? Or a global change of spawn characters on Nod would be fine for you?
Both are possible, but the former would be a bit more trickier.
[Updated on: Wed, 07 July 2010 08:07] Report message to a moderator
|
|
|