Definition
ResumeAnimationOfAllWaters([optional] string exception_1, [optional] string exception_2,..., [optional] string exception_n)
Description
This function resumes animation of all water objects except for the animation of water objects sent to the function.
Parameters
[optional] string exception_1, [optional] string exception_2,…, [optional] string exception_n
Specifies the name of waters whose animation should not be resumed. If no name is passed to ResumeAnimationOfAllWaters function, animation of all waters will be resumed.
Example
function OnTriggerEnter(otherActorName) --nil means main character controller if otherActorName == nil then PauseAnimationOfAllWaters() end end function OnTriggerStay(otherActorName) end function OnTriggerExit(otherActorName) if otherActorName == nil then ResumeAnimationOfAllWaters("water2", "water3") end end
Assume that the above script is attached to a trigger named trigger1. Also assume that “water2” and “water3” in the example above are the name of water objects in the VScene.
Whenever the main character enters “trigger1”, animation of all waters will be paused.
When the main character exits “trigger1”, animation of all waters except the animation of waters “water2” and “water3” will be resumed.
ResumeAnimationOfAllWaters