i got this script that makes them play a car gani. but how do i make it so they go fast when they in the car??? and its a spy car it shoots bullets
PHP Code:
//#CLIENTSIDE
if (weaponfired) {
replaceani idle,dg_car;
replaceani walk,dg_car;
setani dg_car,;
freezeplayer .1;
setani dg_car,;
this.angle=getangle(vecx(playerdir),vecy(playerdir));
this.x=playerx+vecx(playerdir)*2;
this.y=(playery-.5)+vecy(playerdir)*2.5;
shoot this.x,this.y,playerz,this.angle+random(this.maxangle*5,this.maxangle),
1,0,dg_bullet,1;
triggeraction this.x,this.y,shot,;
}
if (keypressed && strequals(#p(1),s)) {
replaceani idle,idle;
replaceani walk,walk;
}
and dg stands for dev gulthex