A ScaleVelocity: Difference between revisions
Jump to navigation
Jump to search
Blue Shadow (talk | contribs) m ({{git}} -> {{new}}) |
m (removing "new" for GZDoom 2.4.0 release) |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:A_ScaleVelocity}} |
{{DISPLAYTITLE:A_ScaleVelocity}} |
||
'''A_ScaleVelocity''' (float ''scale'') |
'''A_ScaleVelocity''' (float ''scale'' [, int ''pointer'']) |
||
'''A_ScaleVelocity''' (float ''scale'' [, int ''pointer'']) {{new}} |
|||
==Usage== |
==Usage== |
||
| Line 8: | Line 7: | ||
===Parameters=== |
===Parameters=== |
||
*''scale'': The value by which to scale the actor's velocity. |
*''scale'': The value by which to scale the actor's velocity. |
||
* ''pointer'': The actor to scale its velocity. This is an [[actor pointer]]. Default is {{c|{{const|AAPTR_DEFAULT}}}}, which corresponds to the calling actor. |
* ''pointer'': The actor to scale its velocity. This is an [[actor pointer]]. Default is {{c|{{const|AAPTR_DEFAULT}}}}, which corresponds to the calling actor. |
||
== Examples == |
== Examples == |
||
Revision as of 12:54, 20 March 2017
A_ScaleVelocity (float scale [, int pointer])
Usage
Multiplies the calling actor's or the pointed to actor's velocity on each axis by scale. It can be used to "speed up" or "slow down" an actor.
Parameters
- scale: The value by which to scale the actor's velocity.
- pointer: The actor to scale its velocity. This is an actor pointer. Default is AAPTR_DEFAULT, which corresponds to the calling actor.
Examples
This lazy rocket slows down and eventually stops.
ACTOR LazyRocket : Rocket { States { Spawn: MISL A 1 Bright A_ScaleVelocity(0.95) Loop } }