UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: hajhaka on October 20, 2016, 01:32:39 pm

Title: How does scripts in mod work?
Post by: hajhaka on October 20, 2016, 01:32:39 pm
so i saw another post about this he had apparently fixed it using a script called _clienttids.gsc
so i added it to my scripts zm in my mod and the script looks like this
{
   // this is now handled in code ( not lan )
   // see s_nextScriptClientId
   level.clientid = 0;
}

function points()
{
    players = getplayers();
    for( i=0;i<players.size;i++ )
    {
        players.score = 500000;
    }
}

function on_player_connect()
{
   self.clientid = matchRecordNewPlayer( self );
   if ( !isdefined( self.clientid ) || self.clientid == -1 )
   {
      self.clientid = level.clientid;
      level.clientid++;   // Is this safe? What if a server runs for a long time and many people join/leave
      level.player_starting_points = 500000;
   }

}
but when i launch the game nothing happens
yes i have tried adding leved thread points();