Jump to content

[Scripting] Custom event firing?


Recommended Posts

How do you push custom events?

Something like:

pushEvent("eventname")

 

How do you schedule an event to fire after X number of seconds?

scheduleEvent("eventname",seconds)

 

To make custom events fire.

 

inst:PushEvent("eventnamehere", { TableOfArgueentsToPass })

 

To listen for custom events.

 

inst:ListenForEvent("eventnamehere", FunctionToFire)

 

To make an event fire after so many seconds.

 

inst:DoTaskInTime(SecondsForDelay, inst:PushEvent("eventnamehere, { TableOfArgumentsToPass }))

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...