• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] How to add Command -cam

Status
Not open for further replies.
Level 1
Joined
May 16, 2018
Messages
5
Hello guys i want to add command ''-cam'' or ''-zoom'' for camera height distance beetween %100 and %500

Like any other maps have.

-cam 2000, c 2000 etc
 
The relevant event would go like this:
(Note: just an example, might not exist as-is)

  • Event
    • Player - A player enters -cam as a Sub-String
In the example trigger above, player can be substituted with any player value.

Since you expect the input to always be at the start (from your examples), it would be imperative to add a condition as so.

  • Conditions
    • (Sub-String of (Entered chat string) from 1 to 4) equal to "-cam"
From the above statement, the entered string must begin with -cam for it to fire its' actions.
 
Status
Not open for further replies.
Top