Always Visible Feature
Moderator: Moderators
Always Visible Feature
Is there a way to make a feature always visible?
Re: Always Visible Feature
I think there's either a SetFeatureAlwaysVisible or a tag in the featuredef, I know I had them set to always visible for a while in ColorWar.
Re: Always Visible Feature
I don't have any old Color Wars, I can only find the 3.
Good to know there's a way, not I just have to find the spelling of that Lua command or TDF tag.
I did try the TDF tags nodrawundergray=0; and fardraw=1; to no avail.
SetFeatureAlwaysVisible is either not existing or not spelt like that.[ 3720] LuaRules::RunCallIn: error = 2, GameFrame, [string "LuaRules/Gadgets/colorwars.lua"]:123: attempt to call field 'SetFeatureAlwaysVisible' (a nil value)
stack traceback:
[string "LuaRules/Gadgets/colorwars.lua"]:123: in function 'GameFrame'
[string "LuaGadgets/gadgets.lua"]:926: in function <[string "LuaGadgets/gadgets.lua"]:924>
(tail call): ?
Good to know there's a way, not I just have to find the spelling of that Lua command or TDF tag.
I did try the TDF tags nodrawundergray=0; and fardraw=1; to no avail.
-
- Posts: 1176
- Joined: 23 Aug 2007, 19:46
Re: Always Visible Feature
I know of no way to keep them visible engine wise. The defense range widget makes things like DTs staying visible though so you may want to look up how he did it...
Re: Always Visible Feature
<[LCC]jK> and all features are always visible ...
<[LCC]jK> just features with a teamID set check los
<[LCC]jK> just features with a teamID set check los
Re: Always Visible Feature
Yeah but I had CW use team-owned features that were always visible. I don't remember how I did it though, it did reduce the CPU use hugely AFAIK.
Re: Always Visible Feature
features are subject to detail checks, features that are too far away arent drawn.
Prime exmaples ht elast tiem this ws brought up involved a map witha giant bridge feature that when you got too far away ti vanished, or aGorms tree map.
I submitted a patch which added a tag allowing this to eb fixed, however I do not remember the tag name.
Prime exmaples ht elast tiem this ws brought up involved a map witha giant bridge feature that when you got too far away ti vanished, or aGorms tree map.
I submitted a patch which added a tag allowing this to eb fixed, however I do not remember the tag name.