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 #408550 is a reply to message #408547] Tue, 27 October 2009 11:30 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
Hubba wrote on Tue, 27 October 2009 13:18


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

?



No, like:
if(Get_GameObj(i)){
Attach_Script_Once(Get_GameObj(i),"Test_hubba","");
}
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).
}


or:
GameObject *playerobject = Get_GameObj(i);
if(playerobject){
Attach_Script_Once(playerobject,"Test_hubba","");
}
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).
}








 
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 08:41:46 MST 2024

Total time taken to generate the page: 0.01351 seconds