Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DwarfActor* Dwarf = NULL;
- //Nodes has non-zero amount of elements. None are dwarves.
- for(int i = 0; i < Nodes->GetLength(); i++)
- {
- if (Nodes->Get(i)->Object->GetType().compare("Dwarf") == 0)
- {
- Dwarf = (DwarfActor*)(Nodes->Get(i)->Object);
- break;
- }
- }
- CommandEvent* MoveCommand = new CommandEvent();
- MoveCommand->X = CursorWorldX;
- MoveCommand->Y = CursorWorldY;
- Dwarf->Events.Dispatch(MoveCommand);
- delete MoveCommand;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement