Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Need help finding a script
Re: Need help finding a script [message #271927 is a reply to message #271843] Mon, 09 July 2007 07:19 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
Vector3 spawnpoints[100];
int nspawnpoints;
Vector3 lastspoint;
void MyScript::Created(GameObject *obj)
{
     if(Get_Team(Get_Player_ID(obj)) < 0)
     {
          int rand = Command->Get_Random_Int(0, nspawnpoints);
          while(spawnpoints[rand] != lastspoint)
          {
             rand = Command->Get_Random_Int(0, nspawnpoints);
          }
          lastspoint = spawnpoints[rand];
          Commands->Set_Position(obj, lastspoint);
      }        
            
}


Remember, though, you need to do more than this. You need to get all the spawnpoints and make the header for the script.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: coding
Next Topic: calico submachine gun
Goto Forum:
  


Current Time: Thu Nov 28 20:46:16 MST 2024

Total time taken to generate the page: 0.00732 seconds