Posts: 219
Threads: 11
Joined: Dec 2013
Thanks: 0
Given 1 thank(s) in 4 post(s)
How can i use the ScheduleTask function of the World in C++?
I need the DelayTicks and cTask. What is cTask and how can i create them?
Posts: 6,486
Threads: 176
Joined: Jan 2012
Thanks: 40
Given 157 thank(s) in 838 post(s)
cTask is an interface class. When you want to use it, you declare a new class that derives from it, and overrides its Execute method. Then you create a new instance of that class on the heap (new cMyTask(...)) and pass that to cWorld::ScheduleTask()