ryerye1996
Cool Member
- Reaction score
- 5
I'm Pretty New to Jass and i have no idea why this isnt working... any1 know why??? (+rep)
I am trying to make 1 player play the music (Lumbridge).
I am trying to make 1 player play the music (Lumbridge).
JASS:
function Trig_Lumbridge_Func005C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 039;H007039; ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 039;H008039; ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 039;H000039; ) ) then
return true
endif
return false
endfunction
function Trig_Lumbridge_Conditions takes nothing returns boolean
if ( not Trig_Lumbridge_Func005C() ) then
return false
endif
return true
endfunction
function Trig_Lumbridge_Actions takes nothing returns nothing
set udg_Player = GetPlayerColor(GetOwningPlayer(GetEnteringUnit()))
(if ((GetLocalPlayer == udg_Player) then))
call PlayMusicBJ( gg_snd_Lumbridge )
endif
endfunction
//===========================================================================
function InitTrig_Lumbridge takes nothing returns nothing
set gg_trg_Lumbridge = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Lumbridge, gg_rct_Music_Lumbridge )
call TriggerAddCondition( gg_trg_Lumbridge, Condition( function Trig_Lumbridge_Conditions ) )
call TriggerAddAction( gg_trg_Lumbridge, function Trig_Lumbridge_Actions )
endfunction