struct enc
public real a=1.0
public real c=3.0
public method reset takes nothing returns nothing
set this.a=GetRandomReal(.0,45.0)
set this.c=6.0
endmethod
endstruct
function test takes nothing returns nothing
local enc e=enc.create()
call e.reset()
call BJDebugMsg(R2S(e.a))
call BJDebugMsg(R2S(e.c))
call e.destroy()
endfunction
function InitTrig_aa takes nothing returns nothing
local trigger b=CreateTrigger()
call TriggerRegisterPlayerChatEvent(b,GetLocalPlayer(),"2",true)
call TriggerAddAction(b,function test)
endfunction
public real a=1.0
public real c=3.0
public method reset takes nothing returns nothing
set this.a=GetRandomReal(.0,45.0)
set this.c=6.0
endmethod
endstruct
function test takes nothing returns nothing
local enc e=enc.create()
call e.reset()
call BJDebugMsg(R2S(e.a))
call BJDebugMsg(R2S(e.c))
call e.destroy()
endfunction
function InitTrig_aa takes nothing returns nothing
local trigger b=CreateTrigger()
call TriggerRegisterPlayerChatEvent(b,GetLocalPlayer(),"2",true)
call TriggerAddAction(b,function test)
endfunction