Unique Selection Ring?
by Sean Taylor · in RTS Starter Kit · 06/12/2009 (3:01 pm) · 2 replies
I've read that the selection ring is hardcoded into the engine source, but why is that? Have there been any mods to open the inclusion to the scripting layer? I'd like to have specific selection rings for different units. Say having a Hero unit you'd want to designate him with a ring that had points around the edge looking like a star. I'll try to fool around with it with the limited knowledge of the engine I have, so any help would be awesome!
#2
www.garagegames.com/community/resource/view/12055/3
07/21/2009 (9:28 pm)
maybe this resource is useful to attach icons to the units:www.garagegames.com/community/resource/view/12055/3
Torque Owner Javier Canon
mSelectionTexture = ... "starter.RTS/client/ui/..." ...
TO
const char* defaultGame = Con::getVariable("$defaultGame"); if (dStrlen(defaultGame) > 0) { char expandedFilename[512]; dStrcpyl(expandedFilename, sizeof(expandedFilename), defaultGame, "/client/ui/selection", NULL); mSelectionTexture = TextureHandle( expandedFilename, BitmapTexture, true); } else Con::errorf("Selection bitmap not found, $defaultGame not defined");means that you need to have in your rts mod folder a bitmat:
myRTSmod/client/ui/selection.png
for have a selection ring for diff unit i thing that is in terrSelection.cc but i dont have tryit...