8uY_YoU
New Member
- Reaction score
- 4
JASS:
function EM takes string msg, player a returns nothing
if a == GetLocalPlayer() then
call ClearTextMessages()
call PlaySound("Sound\\Sounds\\Internal\\Sound\\Interface\\Error.wav")
call DisplayTimedTextToPlayer(a,100.,100.,3.,msg)
endif
endfunction
When i called above function only cleartextmessage is working
Trigger:
- Call
- Events
- Unit is attacked
- Conditions
- Unit is ally
- Actions
- Custom Script: call EM("You cant do that!",GetOwningPlayer(GetAttacker))