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 #408347 is a reply to message #408330] Sun, 25 October 2009 23:35 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
nopol10 wrote on Sun, 25 October 2009 19:08

SSGM has a script called MDB_SSGM_Player or something along that line that gets attached to every player GameObject, maybe you could try editing from there.



Or attach your own script from the object hook to players (just like the script nopol mentioned) that has a static bool firstspawn; variable. So on the ::Created event you have a switch like set-up...

void hubbaplayer::Created(GameObject *obj){
staticbool firstspawn = false;
if(firstspawn == false){ // Code will only be called once when the player joins
// Do the loop here
firstspawn = true;
}

}



 
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:57:35 MST 2024

Total time taken to generate the page: 0.01306 seconds