Something like this:
Then you can create the cScheduleBlock using:
I didn't test any of this, so there might be some syntax mistakes.
class cScheduleBlock : public cWorld::cTask
{
public:
int m_PosX, m_PosY, m_PosZ;
cScheduleBlock(int a_PosX, int a_PosY, int a_PosZ):
m_PosX(a_PosX),
m_PosY(a_PosY),
m_PosZ(a_PosZ)
{
}
protected:
virtual void Run(cWorld & a_World) override
{
// Execute code with m_PosX, m_PosY and m_PosZ
}
};
Then you can create the cScheduleBlock using:
cScheduleBlock BlockChange = cScheduleBlock(a_BlockX, a_BlockY, a_BlockZ); a_World->ScheduleTask(NumTicks, BlockChange);
I didn't test any of this, so there might be some syntax mistakes.

