Notifications
Clear all
[Closed] Best way to execute a script once per frame?
Page 2 / 2
Prev
Mar 12, 2015 4:24 am
in simplest terms something like this ? Ideally the callback function is a global declared in a startup script of some kind.
fn time_p = print currentTime
plugin Helper CallbackHelper
name:"CBDummy"
classID:#(0x47db14fe, 0x4e9b5f90)
category:"Standard"
extends:dummy
(
on Create do registerTimeCallback time_p;
on load do registerTimeCallback time_p;
on deleted do
(
unregisterTimeCallback time_p;
)
)
the deleted is problematic as it doesn’t get called immediately (and when it does it doesn’t seem to work. Someone else may have the solution.
Page 2 / 2
Prev