Map Design - Placing RTSUnit
by Michael Bolland · in RTS Starter Kit · 08/28/2008 (1:04 am) · 2 replies
I am using RTSUnit for my resource nodes like Trees and Stone and was wondering if anyone can tell me how I can place these using the in game editor?
Thanks!
Mike
Thanks!
Mike
About the author
#2
Just on a similar topic, is there a way I could locate a nearest resource like this? For my gatherers?
I was thinking maybe a raycast? But i'm still learning this. Maybe there is a more recommended way?
08/28/2008 (8:05 am)
Dave, thanks that's great! I was going to end up using defined areas as resources but markers sound like they will work just perfectly for me, cheers!Just on a similar topic, is there a way I could locate a nearest resource like this? For my gatherers?
I was thinking maybe a raycast? But i'm still learning this. Maybe there is a more recommended way?
Torque 3D Owner Dave Young
Dave Young Games
There are special create functions for other object types in the editor, and you could create one, but I would check out AIGuard resource and the way in which a marker is put down in the editor and later substituted for an AIPlayer object at runtime. The substitution happens when you run an Init function.
To sum up: place markers and use a function to run through the markers and create your RTSUnits that way.