Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
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.0temp.255temp.i++) temp.alpha @= char(temp.i);
  for (
temp.0temp.100000temp.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.0temp.100000temp.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:
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.