• 🏆 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!

Speach on press?

Status
Not open for further replies.
Level 9
Joined
Aug 27, 2004
Messages
471
Ok i know how to make it so if you select a unit he talks, but this guy did a really cool thing where he had an ability "talk" and when you press it nothing happens unless ur right next to a unit, i was wondering how you could do this. Also does anyone know how to post a screeny... :oops:
 
Level 22
Joined
May 11, 2004
Messages
2,863
Thats pretty easy. Just make a selection even with a "unit within range" condition and a play sound action. WOuld be something like this.

Event-
(player) selects a unit

Condition-
Triggering unit is eual to (whatever unit)
Unit/Hero is within (distanc) equal to True

Action-
Display text message containing (text)
Play (sound) <---speech

-VGsatomi
 
Status
Not open for further replies.
Top