SetActorPosition: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 11: Line 11:


Returns true if teleportation was successful.
Returns true if teleportation was successful.
Even if you specify ''fog'', it will NOT briefly paralyze the thing if it's a player. You can use [[SetActorVelocity]] though.
|id=(ACC internal)}}
|id=(ACC internal)}}

Latest revision as of 12:36, 25 April 2021

Description[edit]

This is an ACS built-in function.

Teleports the tagged thing to a given location marked by (x, y, z).

Usage[edit]

bool SetActorPosition(int tid, fixed x, fixed y, fixed z, bool fog)

Parameters[edit]

  • tid: tagged thing to move (see tid for details)
  • x, y, z: map coordinates where to move the thing
  • fog: whether to produce teleportation fog

Return value[edit]

Examples[edit]

No examples given.

Notes[edit]

Beware that since it's considered teleportation, no visual interpolation is taking place, so for small distances meant to produce controlled movement, it will look jerky.

Returns true if teleportation was successful.

Even if you specify fog, it will NOT briefly paralyze the thing if it's a player. You can use SetActorVelocity though.

This function's identification in zspecial.acs is: (ACC internal).

See also[edit]