Hey there.
I've got a few systems in my map with floating texts, and I know it's possible to make them only appear for 1 player. So this is where I have to use the GetLocalPlayer function, but I never worked with it.
How does this work?
Would this work:
So GetLocalPlayer only affects the lines between the if/then/endif?
I've got a few systems in my map with floating texts, and I know it's possible to make them only appear for 1 player. So this is where I have to use the GetLocalPlayer function, but I never worked with it.
How does this work?
Would this work:
JASS:
local unit u = GetTriggerUnit()
local player p = GetUnitOwner(u)
if p == GetLocalPlayer() then
///all the floating text functions///
endif
So GetLocalPlayer only affects the lines between the if/then/endif?