Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++ void On_Player_Death???
Re: C++ void On_Player_Death??? [message #432257 is a reply to message #432193] Wed, 07 July 2010 08:05 Go to previous messageGo to previous message
reborn is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Lua Plugin V5
Next Topic: distance between two objects c++
Goto Forum:
  


Current Time: Tue Dec 03 18:40:37 MST 2024

Total time taken to generate the page: 0.01648 seconds