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

Damage System Help

Status
Not open for further replies.
Level 18
Joined
Jan 21, 2006
Messages
2,552
  • Custom script: call PrintDamageToPlayer(1, GetTriggerPlayer())
The function that prints the damage (both to all players and to only one player) takes a real variable, which dictates how long the message will be displayed. In addition to that you need to end GetTriggerPlayer with (), because it is also a function (a native function provided by the Warcraft III engine).

The above custom script will display to GetTriggerPlayer() for 1 second. The 1 could be any number (whole or decimal) above 0 (because negative time doesn't make sense).
 
Status
Not open for further replies.
Top