SET NEXT DESIRED MOVE STATE

From GTAMods Wiki
Revision as of 09:37, 2 April 2015 by FL1K3R (talk | contribs) (Created page with "{{Native |np=1 |p1t=integer |p1d=Move type }} This native actually need only for setting up move state when actor enters in vehicle (as usually in original .sc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)