• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Turning players into observers/players.

Status
Not open for further replies.
This allows you to turn anyone into an observer and back as well. :thumbs_up:

[trigger=]
Untitled Trigger 001
Events
Player - Player 1 (Red) types a chat message containing o as An exact match
Conditions
Actions
Set p = (Triggering player)
Custom script: call SetPlayerState( udg_p, PLAYER_STATE_OBSERVER, 1)
[/trigger]
[trigger=Turning player back]
Untitled Trigger 001 Copy Copy
Events
Some kind of time event or something
Conditions
Actions
Set p = Player 1 (Red)
Custom script: call SetPlayerState( udg_p, PLAYER_STATE_OBSERVER, 0)
[/trigger]
 
Status
Not open for further replies.
Top