| 12-11-2004, 04:32 AM | #1 |
Code:
function Trig_WEEEEHA_move_Actions takes nothing returns nothing
local integer i=0
loop
exitwhen i>10
if udg_weeeeha[i] then
call CameraSetupApplyForPlayer(true,udg_WeeeehaCam[GetRandomInt(0,8)],.01)
endif
set i=i+1
endloop
endfunction
//===========================================================================
function InitTrig_WEEEEHA_move takes nothing returns nothing
set gg_trg_WEEEEHA_move=CreateTrigger()
call DisableTrigger(gg_trg_WEEEEHA_move)
call TriggerRegisterTimerEventPeriodic(gg_trg_WEEEEHA_move,.2)
call TriggerAddAction(gg_trg_WEEEEHA_move,function Trig_WEEEEHA_move_Actions)
endfunctionWhen I save or test my map with the above trigger in it, WE crashes. Any ideas on what would cause that? |
| 12-11-2004, 12:26 PM | #2 | |
Quote:
|
| 12-11-2004, 01:34 PM | #3 |
1. That space is just a bug in the forums. 2. That doesn't matter. |
| 12-11-2004, 01:58 PM | #4 | |
Quote:
Anyways, only idea I can get from it is that perhaps udg_weeeeha is not a boolean array? |
| 12-11-2004, 02:39 PM | #5 | |
Quote:
It's a boolean array. BTW, I'm sure that 0 infront of .2 doesn't make a difference because I tried it. |
| 12-11-2004, 02:40 PM | #6 |
better use pjass, when the map crashes when saving it leaves a MAPNAME.w3xtemp directory, under it look for war3map.j and use that file with pjass |
