Skip to content

NodeScripts

object NodeScripts
Example
on_world_start {
val script = "oat/player.rift"
if (NodeScripts.classOf(script) == null) return@on_world_start Logger.warn("$script is not built")
NodeScripts.assignPlayer(NodeRef(scene = "lumbridge", id = 1L), script)
}
fun classOf(script: String): String?
fun assignPlayer(
node: NodeRef,
script: String
)
fun clearPlayer()