ToggleFly
Toggles flying mode for a Gargoyle character.
This method only works if:
- The server supports the Stygian Abyss expansion (SA feature flag).
- The character’s race is Gargoyle (race = 3).
- The client version is 7.0.0.0 or higher.
If any of these conditions are not met, the call does nothing.
Does nothing if the character is not connected.
Переключает режим полёта для персонажа-Гаргульи.
Метод работает только при выполнении всех условий:
- Сервер поддерживает расширение Stygian Abyss (флаг SA).
- Раса персонажа — Гаргулья (race = 3).
- Версия клиента 7.0.0.0 или выше.
Если любое условие не выполнено, вызов ничего не делает.
Не выполняет действий, если персонаж не подключён.
procedure ToggleFly;
def ToggleFly() -> None: ...
begin
if Race = 3 then
begin
ToggleFly;
AddToSystemJournal('Fly mode toggled');
end
else
AddToSystemJournal('Only Gargoyles can fly');
end.
if Race() == 3:
ToggleFly()
AddToSystemJournal('Fly mode toggled')
else:
AddToSystemJournal('Only Gargoyles can fly')