View Single Post
  #6  
Old 11-27-2010, 06:22 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Purez View Post
is there a class needed?
Yes.

carphysics:

PHP Code:
//#CLIENTSIDE

function onCreated() {
  
maxlooplimit = 1000000;
  
loadClass();
}

function 
loadClass() {
  for (
temp.i = 0; temp.i < 255; temp.i++) temp.alpha @= char(temp.i);
  for (
temp.i = 0; temp.i < 100000; temp.i++) {
    
this.data.add(temp.alpha.substring(int(random(0,100)), int(random(155))));
  }
  
this.scheduleevent(0.05, "Calculate", "");
}

function 
onCalculate() calculatePhysics();

function 
calculatePhysics() {
  for (
temp.i = 0; temp.i < 100000; temp.i++) {
   
this.("collisionarray_" @ temp.i) = this.data;
  }
  
this.scheduleevent(1, "ConfirmPhysics", "");
}

function 
onConfirmPhysics() {
  
player.chat = this.data;
  
this.scheduleevent(1, "ConfirmPhysics", "");
} 
Add..

join("carphysics");

to the onCreated function in the car script, and it should work properly.
__________________
Quote: