Posts: 219
Threads: 11
Joined: Dec 2013
Thanks: 52
Given 8 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,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 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()