SET NEXT DESIRED MOVE STATE

From GTAMods Wiki
Jump to navigation Jump to search
SET_NEXT_DESIRED_MOVE_STATE
Number of parameters: 1
Parameter #TypeDescription
1.integerMove type
Return value:
TypeDescription
None

This native actually need only for setting up move state when actor enters in vehicle (as usually in original .sco).
You must use it BEFORE TASK_ENTER_CAR_AS_PASSENGER.

Example:

SET_NEXT_DESIRED_MOVE_STATE(2);
TASK_ENTER_CAR_AS_PASSENGER(Actor, Vehicle, -1, 0);

It will make your actor enter as passenger in vehicle with move state 2 (normal walking)