Hello fellas, im back and asking for help once again.
Im sure this question has already been asked before, but i was unable to find any information about it.
Basically what iam trying to do is stop the bmx instantly and set the state to assume its on the ground even if it is in the air or whatever. This would probably make it possible to jump with CTRL again and thats my mission. :computerguy: Here is my "pseudo" script.
I hope somebody is able to help a newbie, and i would appreciate any advice.
In advance thanks alot!
Im sure this question has already been asked before, but i was unable to find any information about it.
Basically what iam trying to do is stop the bmx instantly and set the state to assume its on the ground even if it is in the air or whatever. This would probably make it possible to jump with CTRL again and thats my mission. :computerguy: Here is my "pseudo" script.
I hope somebody is able to help a newbie, and i would appreciate any advice.
In advance thanks alot!
Code:
:brake
wait 0
if and
Actor.DrivingVehicleType($PLAYER_ACTOR, #BMX)
key_down 12@ //read from ini
jf @brake
1@ = Actor.CurrentCar($PLAYER_ACTOR)
if
01F3: car 1@ in_air
jf @brake2
jump @brake
:brake2
wait 0
Car.SetSpeedInstantly(1@, 0.0) // this is not really what i wanted, but it works i guess..
//here i want to force the bmx to assume its on the ground so i can do a jump with CTRL again
//i found this opcode 09D0: is_vehicle_on_all_wheels 1@
//but i have been unable to find any information about how to "SET"_vehicle_on_all_wheels
jump @brake