Currently, I have a couple of effects that use a per-tick VisibleActors iterator. (Its slow, but there is a 0 fps difference for it running so I really don't care about that). However, I would be able to work out a couple additions to this effect if I stored these items it a dynamic array, and referred to them on a per-tick basis with a quick visibility check. Is there any uscript function fast enough for this purpose, and would be safe to use in a network environment? I'm not 100% sure on the speed / usage of the native function PlayerCanSeeMe(), and I would assume even a FastTrace to a dozen actors would be much slower than the iterator. As for LastRenderTime, what if the object itself is hidden with no mesh? And how do such methods effect other players present in the game; would PlayerCanSeeMe() return true if _any_ player can see the actor, or just the one on which the function was called?
Thanks in advance for your help.
Thanks in advance for your help.