Tile - YCharacter - Set Forced Immunity – Ylands

From Bohemia Interactive Community
Revision as of 14:26, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Set Forced Immunity(Character, Immunity, Value)

YlandsTile-483.png

setForcedImmunity(immunity: YImmunityType, value: YForcedBool): void;

Parameters

immunity

Immunity type

value

New immunity state

Availability

Server, Not in Edu

Description

Allows to set character immunity override.

Notes

  • Force true / false will override current immunity state.
  • Default will return the state before this instruction was used. So if player had immunity from potion, he will retain it.