View Single Post
  #1  
Old 12-02-2006, 05:34 AM
mYg0tHaMpStEr mYg0tHaMpStEr is offline
Never trust anyone.
mYg0tHaMpStEr's Avatar
Join Date: Jul 2006
Location: Mars
Posts: 98
mYg0tHaMpStEr is on a distinguished road
Send a message via AIM to mYg0tHaMpStEr Send a message via MSN to mYg0tHaMpStEr
Car script...? xd

Hey, I'm having trouble with a car script...

This is what I have. I want this to be similar to GXes (because they r leet. gj joey ) Like a trunk and Radio and they'll have 2 people with one person shooting.

Then I'de like them parkable with keys to drive. I have this so far.. Can anyone complete this? (Joey.. XD)

NPC Code:
//#CLIENTSIDE
function onCreated() enabledefmovement();
function onWeaponFired()
{
onCreated();
this.car = !this.car;
if ( this.car ) onTimeOut();
if ( !this.car ) setTimer( 0 );
}
function onTimeOut()
{
disabledefmovement();
showimg( 1, "fc_car.png", player.x, player.y );
findimg( 1 ).rotation = this.ang;
if ( keydown( 3 ) )
{
this.ang -= .1;
}
if ( keydown( 1 ) )
{
this.ang += .1;
}
if ( keydown( 0 ) )
{
player.x -= cos( this.ang ) * 1;
player.y -= sin( this.ang ) * 1;
}
setTimer( 0.05 );
}



Thank you!
-Ork
__________________
Quote:
Originally Posted by Utopia RC Chat
lesmA: it's a good thing i can count to 10 now using gscript, you know, in case i forget how irl
Quote:
Originally Posted by Utopia RC Chat
lesmA: woo now i can make it count to 10 over 10 seconds!
lesmA: WATCH OUT SKYLD, HERE COME'S LESMA THE NEW SUPER-SCRIPTER!!!
Ork: ROFL
Ork: ANOTHER BRILLIANT FORUM SIG QUOTE
lesmA: oh god i should just stop talking before i make a fool of myself
Reply With Quote