SetActorPosition: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
bool SetActorPosition (int tid, fixed x, fixed y, fixed z, bool fog)
{{ACSFunction|description=
 
Teleports the tagged thing to a given location marked by (x, y, z).
Teleports the tagged thing to a given location marked by (x, y, z). 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.
|usage=
 
''bool'' SetActorPosition(''int tid'', ''fixed x'', ''fixed y'', ''fixed z'', ''bool fog'')
''fog'' means that it should also produce teleportation fog.
|parameters=
*''tid'': tagged thing to move
*''x'', ''y'', ''z'': map coordinates where to move the thing
*''fog'': whether to produce teleportation fog
|notes=
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.
Returns true if teleportation was successful.
|id=(ACC internal)}}

Revision as of 11:51, 25 April 2021

Description

This is an ACS built-in function.

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

Usage

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

Parameters

  • tid: tagged thing to move
  • x, y, z: map coordinates where to move the thing
  • fog: whether to produce teleportation fog

Return value

Examples

No examples given.

Notes

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.

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

See also