User Tools

Site Tools


4rpl:commands:movetowards

This is an old revision of the document!


Index

MoveTowards

MoveTowards(<-current <-target <-maxDistance) ->result

Description

Calculate a position between the points specified by current and target, moving no farther than the distance specified by maxDistance. Current, target are treated as vector3. MaxDistance is a float. Result is a vector3.

Examples

MoveTowards(GetUnitPosition(self) <-target 2) ->result

Index

4rpl/commands/movetowards.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)