Files

22 lines
544 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Darklord.js — restoreFlightSnapshot() (satır 3043)
[← Darklord.js](index.md) · [← Master](../../wiki.md)
```javascript
function restoreFlightSnapshot(player)
{
var allow = false;
var flying = false;
try
{
var states = player.getStates();
allow = String(states.getString("darkblood_toz_prev_allow") || "0") === "1";
flying = String(states.getString("darkblood_toz_prev_flying") || "0") === "1";
}
catch (e1) {}
setFlightCaps(player, allow, flying);
}
```