equal
deleted
inserted
replaced
79 Removes the skip function associated with `anim`. |
79 Removes the skip function associated with `anim`. |
80 |
80 |
81 === `SetAnimSkip(bool)` === |
81 === `SetAnimSkip(bool)` === |
82 Sets the state of animation skipping to `bool`. It is useful in case the player is allowed to skip the animation. |
82 Sets the state of animation skipping to `bool`. It is useful in case the player is allowed to skip the animation. |
83 |
83 |
84 Example: |
84 By convention, a cut scene in a singleplayer mission should be skipped when the player presses the Precise key. In this case, use the `onPreciseLocal` callback for this. |
85 <code language="lua">function onPrecise() |
85 |
|
86 Example: |
|
87 <code language="lua">function onPreciseLocal() |
86 if AnimInProgress() then |
88 if AnimInProgress() then |
87 SetAnimSkip(true) |
89 SetAnimSkip(true) |
88 end |
90 end |
89 end</code> |
91 end</code> |
90 |
92 |