Events

Mysteryman

Active Member
I see you added some event triggers to isxeq2. I've tried to get them to fire to no avail...

I got the following code off this board in an example somewhere and created a simple script, but the function never seems to call.. what am i missing out on?

Code:
function main()
{ 
    variable bool bDone=FALSE

    do
     {
          WaitFrame
     }
    while !{bDone}
}

atom(script) EQ2_CastingEnded()
{
     echo blah blah blah
}
 

Amadeus

The Maestro
Staff member
Code:
function main()
{ 
    variable bool bDone=FALSE
    Event[EQ2_CastingEnded]:AttachAtom[EQ2_CastingEnded]

    do
     {
          WaitFrame
     }
    while !{bDone}

    Event[EQ2_CastingEnded]:DetachAtom[EQ2_CastingEnded]
}

atom(script) EQ2_CastingEnded()
{
     echo blah blah blah
}
 
Top Bottom