SetActorVelocity: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
No edit summary |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
==ACS function== | ==ACS function== | ||
'''SetActorVelocity'''(''int'' ''tid'', ''fixed'' ''velx'', ''fixed'' ''vely'', ''fixed'' ''velz'', ''bool'' ''add'') | '''SetActorVelocity'''(''int'' ''tid'', ''fixed'' ''velx'', ''fixed'' ''vely'', ''fixed'' ''velz'', ''bool'' ''add'', ''bool'' ''bob'') | ||
Sets velocity of things tagged ''[[tid]]''. ''Velx''/''vely''/''velz'' are expressed in "fixed-point" mode, i.e. with decimal point changing the actual value (e.g. 10.0 is equivalent to 655360). | Sets velocity of things tagged ''[[tid]]''. ''Velx''/''vely''/''velz'' are expressed in "fixed-point" mode, i.e. with decimal point changing the actual value (e.g. 10.0 is equivalent to 655360). | ||
If ''add'' is | If ''add'' is TRUE, it causes the velocity vector to be added to things' current velocities. Note that monster movement (which has a characteristic jerky pattern) does not count as actual velocity. | ||
If ''bob'' is TRUE, affected players will also bob their view. Otherwise their weapon will be still. | |||
===See also=== | ===See also=== | ||
| Line 12: | Line 14: | ||
*[[Stop]] ([[List of codepointers|codepointer]]) | *[[Stop]] ([[List of codepointers|codepointer]]) | ||
*[[Thing_Stop]] ([[Detailed parameterized linedef specification|linedef special]]) | *[[Thing_Stop]] ([[Detailed parameterized linedef specification|linedef special]]) | ||
*[[ThrustThing]] (linedef special) | |||
*[[ACS functions]] | *[[ACS functions]] | ||
[[Category:ACS]] | [[Category:ACS]] | ||
Latest revision as of 15:06, 5 May 2026
ACS function[edit]
SetActorVelocity(int tid, fixed velx, fixed vely, fixed velz, bool add, bool bob)
Sets velocity of things tagged tid. Velx/vely/velz are expressed in "fixed-point" mode, i.e. with decimal point changing the actual value (e.g. 10.0 is equivalent to 655360).
If add is TRUE, it causes the velocity vector to be added to things' current velocities. Note that monster movement (which has a characteristic jerky pattern) does not count as actual velocity.
If bob is TRUE, affected players will also bob their view. Otherwise their weapon will be still.
See also[edit]
- GetActorVelX
- SetActorProperty
- Stop (codepointer)
- Thing_Stop (linedef special)
- ThrustThing (linedef special)
- ACS functions