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!
I need function which by a certain string typed by red, map will go back and forth between as if A or B was written: (eg: *game acts as if A was written* *red: "dodo"* *game acts as if B was written* *red: "dodo"* *game acts as if A was written*)
if you want a correct answer then I guess you should clear what you really want, map back and forth from what I understand is switch between maps and uses game caches...
but if you just want to type(chat) to execute A & B, then the code you made is poor, use this instead...
JASS:
function face takes nothing returns nothing
call SetUnitFacing(udg_testunit, GetUnitFacing(udg_testunit)+180)
endfunction
function InitTrig_Chat takes nothing returns nothing
set gg_trg_Chat = CreateTrigger( )
call TriggerRegisterPlayerChatEvent(gg_trg_Chat, Player(0), "chat", true)
call TriggerAddAction( gg_trg_Chat, function face)
endfunction
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.