Cursed Eclipse wrote...
@Thanks S.Monk
could you provide me an example with signal event?
You'd use
SignalEvent(), probably to call an
OnUserDefined event. For example, you could create a userdefined event that tells that door to open:
// OnExhausted
void main()
{
object oDoor = GetObjectByTag("my_door");
SignalEvent(oDoor, EventUserDefined(20000));
}
// OnUserDefined for the door
void main()
{
int nEvent = GetUserDefinedEventNumber();
if (nEvent == 20000)
{
SetLocked(OBJECT_SELF, FALSE);
ActionOpenDoor(OBJECT_SELF);
}
}
This is a really bad example. There's much better uses for OnUserDefined, though I don't have the time to explain just now. I'll try to work up a better explanation and examples later tonight.
Modifié par Squatting Monk, 05 février 2014 - 01:28 .