Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Stealth command help
Re: Stealth command help [message #408547 is a reply to message #408543] Tue, 27 October 2009 11:18 Go to previous messageGo to previous message
Hubba is currently offline  Hubba
Messages: 40
Registered: October 2009
Karma:
Recruit
reborn wrote on Tue, 27 October 2009 11:11

'i' in the join hooks function argument list is actually the ID.

However, I would be super careful assuming they have a GameObject * at that point...

Better to do:

if(Get_GameObj(i)){
//attach the script to the player
}
else{
//create an object yourself, then attach the script to that object which waits until the player has a gameobject and has loaded (like discussed earlier).
}


Like :
if(Get_GameObj(i)){
Attach_Script_Once(i,"Test_hubba","");
}

?

error C2664: 'Attach_Script_Once' : cannot convert parameter 1 from 'int' to 'GameObject *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

 
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
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
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: I need of a modified scripts.dll
Next Topic: Level Edit Problem
Goto Forum:
  


Current Time: Sat Dec 21 18:50:10 MST 2024

Total time taken to generate the page: 0.01285 seconds