Quote:
Originally Posted by Purez
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.