ped.walkTo: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 4: Line 4:
|class = Ped
|class = Ped
|name = walkTo
|name = walkTo
|parameters = Vec2 destinationPosition
|parameters = Vec3 destinationPosition
|parameter1 = Vec2 destinationPosition The 2D game position for the ped to walk to.
|parameter1 = Vec3 destinationPosition The 3D game position for the ped to walk to.
|usage = make the ped walk to a position
|usage = make the ped walk to a position
|return1 = void
|return1 = void
|returnFail1 = void
|returnFail1 = void
|notes = This method previously took a Vec2, instead of a Vec3.
}}
}}

Latest revision as of 23:29, 1 September 2023

walkTo

Signature: void walkTo(Vec3 destinationPosition)

Usage: make the ped walk to a position

Parameters

Vec3 destinationPosition The 3D game position for the ped to walk to.

Return

void

On failure: void