Timeline Lua API: Difference between revisions

From Off Grid Wiki
Jump to navigation Jump to search
(Created page with "<!-- This file is auto generated, please don't edit manually! --> = Timeline = == Description == Allows controlling Timelines on MissionObjects == Functions == === Play === <s...")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 43: Line 43:
'''Returns''': Nothing
'''Returns''': Nothing


=== SetDynamicCameraTarget ===
<syntaxhighlight source lang="lua">Timeline.SetDynamicCameraTarget(missionObjectName, targetName)</syntaxhighlight>
'''Expected parameter types'''
{| class="wikitable"
|-
! Name !! Type
|-
| missionObjectName || string
|-
| targetName || string
|}
'''Description''': Sets the look at & follow target for all dynamically targeted cameras in the timeline
'''Returns''': Nothing
=== PauseAI ===
<syntaxhighlight source lang="lua">Timeline.PauseAI(characterName)</syntaxhighlight>
'''Expected parameter types'''
{| class="wikitable"
|-
! Name !! Type
|-
| characterName || string
|}
'''Description''': Pauses an AI agent.
'''Returns''': Nothing
'''Notes''': Bit of a hack for Timeline use, this might get removed later on!
=== UnpauseAI ===
<syntaxhighlight source lang="lua">Timeline.UnpauseAI(characterName)</syntaxhighlight>
'''Expected parameter types'''
{| class="wikitable"
|-
! Name !! Type
|-
| characterName || string
|}
'''Description''': Unpauses an AI agent, resuming standard behaviour.
'''Returns''': Nothing
'''Notes''': Bit of a hack for Timeline use, this might get removed later on!




This file is auto generated, please don't edit manually!
This file is auto generated, please don't edit manually!


'''Docs last hacked together on''': 15/11/2019 14:59
'''Docs last hacked together on''': 29/08/2023 16:24
[[Category:Modding]][[Category:LuaAPI]]
[[Category:Modding]][[Category:LuaAPI]]

Latest revision as of 14:26, 29 August 2023

Timeline

Description

Allows controlling Timelines on MissionObjects

Functions

Play

Timeline.Play(missionObjectName)

Expected parameter types

Name Type
missionObjectName string

Description: Starts the timeline

Returns: Nothing

Pause

Timeline.Pause(missionObjectName)

Expected parameter types

Name Type
missionObjectName string

Description: Pauses the timeline

Returns: Nothing

Stop

Timeline.Stop(missionObjectName)

Expected parameter types

Name Type
missionObjectName string

Description: Stops the timeline

Returns: Nothing

SetDynamicCameraTarget

Timeline.SetDynamicCameraTarget(missionObjectName, targetName)

Expected parameter types

Name Type
missionObjectName string
targetName string

Description: Sets the look at & follow target for all dynamically targeted cameras in the timeline

Returns: Nothing

PauseAI

Timeline.PauseAI(characterName)

Expected parameter types

Name Type
characterName string

Description: Pauses an AI agent.

Returns: Nothing

Notes: Bit of a hack for Timeline use, this might get removed later on!

UnpauseAI

Timeline.UnpauseAI(characterName)

Expected parameter types

Name Type
characterName string

Description: Unpauses an AI agent, resuming standard behaviour.

Returns: Nothing

Notes: Bit of a hack for Timeline use, this might get removed later on!


This file is auto generated, please don't edit manually!

Docs last hacked together on: 29/08/2023 16:24