SetPlayerProperty
From ZDoom Wiki
191:SetPlayerProperty (who, set, which)
- who: Set to 1 to affect all players, 0 for just the one who activated the special
- set: Set to 1 to turn on the property or 0 to turn it off
- which: Which property to change
Sets a property for a player.
| Note: Using this special to grant powerup effects to players has been deprecated. Consider using the GiveInventory function for this purpose instead. |
- 0 — PROP_FROZEN — The player cannot move.
- 1 — PROP_NOTARGET — Monsters ignore the player, unless they have already seen him or the player harms them.
- 2 — PROP_INSTANTWEAPONSWITCH — The weapons do not delay between changing them.
- 3 — PROP_FLY - The player is (not) subjected to gravity. The behavior is about the same as having Heretic's/Hexen's Wings of Wrath.
- 4 — PROP_TOTALLYFROZEN — Same as PROP_FROZEN, but does not allow the player to look around or shoot. (In fact, the only control they can still use is the “+use” key)
- 5 — PROP_INVULNERABILITY — Invulnerability sphere. Using a "set" value of 1 makes the player(s) invulnerable and applies the inverted greyscale invulnerable palette (the palette change does not work when applied to all players in versions prior to svn revision 1860). Using a "set" value of 2 makes the player(s) invulnerable but does not apply the invulnerability palette.
- 6 — PROP_STRENGTH (deprecated) — Berserk pack
- 7 — PROP_INVISIBILITY (deprecated) — Partial Invisibility sphere
- 8 — PROP_RADIATIONSUIT (deprecated) — Radiation suit
- 9 — PROP_ALLMAP (deprecated) — Computer area map
- 10 — PROP_INFRARED (deprecated) — Light Amplification Goggles
- 11 — PROP_WEAPONLEVEL2 (deprecated) — Tome of Power
- 12 — PROP_FLIGHT (deprecated) — Wings of Wrath
- 13 — PROP_UNUSED1 — Does nothing. Do not use.
- 14 — PROP_UNUSED2 — Does nothing. Do not use.
- 15 — PROP_SPEED (deprecated) — Speed boots
- 16 — PROP_BUDDHA Buddha Mode (1 indestructible hit point) (New from 2.5.0)
Examples
|
Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated. |