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 #432247 is a reply to message #432246] Wed, 07 July 2010 07:12 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
MutateMeh wrote on Wed, 07 July 2010 09:43


Maybe i did something wrong i don't know, i'm a pretty beginner in c++ so if it is, tell me Smile


You're a pretty beginner? I guess it beats being an ugly beginner! Razz

In your gmmain.cpp file you did not update the object create hook, so while the script is valid, it's not being called because it isn't attached to any players.
I posted what you should do, but I guess you forgot?
		else {
			Attach_Script_Once(obj,"MDB_SSGM_Player","");
		}


should be

		else {
			Attach_Script_Once(obj,"MDB_SSGM_Player","");
Attach_Script_Once(obj,"MutateMeh_Death_Script","");
		}



Also, the registrant should go under the script itself, really.



[Updated on: Wed, 07 July 2010 07:14]

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: Wed Dec 11 05:56:38 MST 2024

Total time taken to generate the page: 0.01364 seconds