LuaLibraries.wiki
changeset 935 97361ff66b78
parent 934 dd382ad56f7e
child 938 aa5d58152f50
equal deleted inserted replaced
934:dd382ad56f7e 935:97361ff66b78
   159     CheckEvents()
   159     CheckEvents()
   160 end</code>
   160 end</code>
   161 
   161 
   162 Also, `AnimInit()` needs to be called in `onGameInit()`.
   162 Also, `AnimInit()` needs to be called in `onGameInit()`.
   163 Each of these functions will be explained below.
   163 Each of these functions will be explained below.
       
   164 
       
   165 Note: The Animate library will direclty overwrite the input mask with `SetInputMask`. If you already use this function in your script, it might lead to conflicts.
   164 
   166 
   165 === Cinematic handling ===
   167 === Cinematic handling ===
   166 
   168 
   167 ==== `ShowAnimation()` ====
   169 ==== `ShowAnimation()` ====
   168 Performs the current action in the cinematic and returns `true` if finished, otherwise `false`. It needs to be used in `onGameTick`. Cut-scenes need to be added with `AddAnim(steps)`.
   170 Performs the current action in the cinematic and returns `true` if finished, otherwise `false`. It needs to be used in `onGameTick`. Cut-scenes need to be added with `AddAnim(steps)`.