schedule
fun schedule(timeToEvent: Double, message: T? = null, priority: Int = KSLEvent.DEFAULT_PRIORITY, name: String? = null): KSLEvent<T>(source)
Allows event actions to more conveniently schedule themselves
Return
the scheduled event
Parameters
time To Event
the time until the next action
priority
the priority of the action
message
a general object to attach to the action
name
a name to associate with the event for the action