Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-27-2010, 06:10 AM
Purez Purez is offline
Registered User
Join Date: Mar 2010
Posts: 11
Purez is an unknown quantity at this point
is there a class needed?
  #2  
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:
  #3  
Old 11-27-2010, 06:28 AM
Purez Purez is offline
Registered User
Join Date: Mar 2010
Posts: 11
Purez is an unknown quantity at this point
One more question, what is the car itself script? Or is this is and their basically is no system. I am a new scripter so gimme a brake .. It doesnt seem like the car itself so .. I really appriciate this dude!
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:19 AM.


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