| 04-28-2004, 02:06 PM | #1 |
Code:
function Trig_IgnoreAi takes real r, unit whichUnit returns nothing
local real IgnoreTime = r
local unit IgnoreUnit = whichUnit
set udg_AI_Ignore_Orders[GetConvertedPlayerId(GetOwningPlayer(IgnoreUnit))] = true
call TriggerSleepAction( IgnoreTime )
set udg_AI_Ignore_Orders[GetConvertedPlayerId(GetOwningPlayer(IgnoreUnit))] = false
endfunction
//===========================================================================
function InitTrig_IgnoreAi takes nothing returns nothing
set gg_trg_IgnoreAi = CreateTrigger( )
call TriggerAddAction( gg_trg_IgnoreAi, function Trig_IgnoreAi )
endfunctionI want to call this function from the GUI, but.. Code:
call Trig_IgnoreAi( 5.00, udg_TempUnit ) ..did not work however. |
| 04-28-2004, 06:08 PM | #2 | |
Quote:
I don't know JASS... but aren't you giving 2 values when its takes nothing and returns nothing? |
| 04-28-2004, 06:39 PM | #3 |
There are two functions, he's calling the first. I don't know what that fuction is trying to do either so I don't know what could be happening. |
