registerForEvent('onInit', function() Observe('PlayerPuppet', 'OnAction', function(,…
- User
registerForEvent('onInit', function() Observe('PlayerPuppet', 'OnAction', function(_, action)
codelocal player = Game.GetPlayer() local actionName = Game.NameToString(ListenerAction.GetName(action)) local actionType = ListenerAction.GetType(action).value if ((actionName =='CameraAim') and (actionType == 'BUTTON_PRESSED')) then Game.GetTimeSystem():SetTimeDilation(CName.new("pause"), 0.0) TimeDilationHelper.SetTimeDilationWithProfile(Game.GetPlayer(), "radialMenu", true, true) TimeDilationHelper.SetIgnoreTimeDilationOnLocalPlayerZero(Game.GetPlayer(), true) elseif ((actionName =='CameraAim') and (actionType == 'BUTTON_RELEASED')) then Game.GetTimeSystem():UnsetTimeDilation(CName.new("pause"), "None") TimeDilationHelper.SetTimeDilationWithProfile(Game.GetPlayer(), "radialMenu", false, true) TimeDilationHelper.SetIgnoreTimeDilationOnLocalPlayerZero(Game.GetPlayer(), false) end end)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.