Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Force Player.Paused (https://forums.graalonline.com/forums/showthread.php?t=134268784)

sssssssssss 10-01-2013 01:19 AM

Force Player.Paused
 
Is there a way to force the player to be paused with the default pause? I know there's player.paused but it's just boolean of course.

baseman101 10-01-2013 02:30 AM

I believe this is the answer you are looking for :)

Quote:

disablepause()
enablepause()
Edit: Apologies, this function disables the pausing function.

sssssssssss 10-01-2013 02:36 AM

That disables pause, but what I want to do is actually make the player paused per default pause. Like if you touch a block, it makes the player paused.

baseman101 10-01-2013 02:38 AM

I don't think that is possible, however, you can make your own pause system.

Quote:

freezeplayer(float)
is a great function to use to freeze the player. What do you need to actually use the default pause system for?

sssssssssss 10-01-2013 02:47 AM

Wanting to stay in default is all. I know custom is better, and I had a custom one, just prefer to use default if possible.

I could just freeze the player and show the pause screen I suppose. Thanks!


All times are GMT +2. The time now is 10:54 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.