AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   func_vehicle HELP (https://forums.alliedmods.net/showthread.php?t=208554)

Mxnn 02-14-2013 23:59

func_vehicle HELP
 
Hi everybody. I need your help because I'm trying to set the vehicle maxspeed and I can't. 2 or 3 days ago I did it with this:
PHP Code:

#define CAR_SPEED "950.0"
public pfn_keyvalue(entid) {
    new 
classname[32], key[32], value[32]
    
copy_keyvalue(classname31key31value31)
    if (
equali(classname,"func_vehicle"))
        
DispatchKeyValue(entid"speed"CAR_SPEED


But now the plugin don't works and I don't know why! I tried to comment all my plugin (excluding this function) to check if a part of my plugin was blocking it but didn't works.
Any help? Or any have an idea to set max speed?
I tried using entity_set_float(..EV_FL_maxspeed..) too, and didn't works neither.

Sory for my english!

simanovich 02-15-2013 00:37

Re: func_vehicle HELP
 
maybe pev_speed (fakemeta)? (It's for entitys only, not for players)

Mxnn 02-15-2013 01:46

Re: func_vehicle HELP
 
Thanks for the help! I fixed the problem and i don't know why. Is like that sometimes works and sometimes not. I have another question: I have func_vehicles and in a function i set them in x y z coordenates (that are float). The problem is that when i set it, the car turns like SOLID_TRIGGER or SOLID_NOT car (passable through).. Do you have any idea about this behavoir? I used entity_set_vector(.. EV_VEC_origin..)


All times are GMT -4. The time now is 20:35.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.