Sign in to follow this  
Woodside235

[Scripting] Custom event firing?

Recommended Posts

Kzisor    1061

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 }))

Share this post


Link to post
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
Sign in to follow this