User:Ally

HI THIS IS WHERE I RAMBLE ABOUT STUFF THAT SHOULD BE MADE PUBLIC KNOWLEDGE

Freezing and unfreezing the player
Taking away control from the player is simple; just pause the script. However, if you would like to freeze the player so that they instantly stop, that's a tiny bit more difficult. There's no commands that can do this, however there's a state that the game can enter which freezes all entities... maybe you can spot it when collecting a trinket or a crewmate?

When you collect a trinket or a crewmate, it sets the  variable to true, which freezes execution of all entities, and spawns cutscene bars and a few other things. After 15 frames, it continues to a state which shows the "you got a shiny trinket!" box.

So to freeze the player without any side effects, we'll have to do as follows:


 * 1) Start the gamestate
 * 2) Immediately hide cutscene bars
 * 3) Exit out of the gamestate so it doesn't continue

This is fairly easy in scripting:

gamestate(1000) # Start the gamestate delay(1)       # Wait a frame for the gamestate to actually start endcutscene  # Immediately remove cutscene bars gamestate(0)   # Exit out of the gamestate

and to unfreeze the player, simply call.

If you're using my fakecommands plugin, then you can simply just call  and.