• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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