ResumeUpdateEventOfVSceneScript

Definition

ResumeUpdateEventOfVSceneScript()

Description

This function resumes the script’s Update() event of VScene Script object.

Example

function OnTriggerEnter(otherActorName)
    --nil means main character controller
    if otherActorName == nil then
          PauseUpdateEventOfVSceneScript()
    end
end

function OnTriggerStay(otherActorName)

end

function OnTriggerExit(otherActorName)
    --nil means main character controller
    if otherActorName == nil then
          ResumeUpdateEventOfVSceneScript()
    end
end
Assume that the above script is attached to a trigger named “trigger1”. Whenever the main character enters “trigger1”, script’s Update() event of VScene Script object will be paused. Whenever the main character exits “trigger1”, script’s Update() event of VScene Script object will be resumed.
adminResumeUpdateEventOfVSceneScript