GetIsLocationValid()
Whitegrave
Member Posts: 37
Does anyone know of a clever way of determining if a given target location, such as from spell or Unique Power targets, is valid and walkable mesh? Such as preventing an effect from firing if the targetted location is inside a wall or black space outside the painted terrain.
I've tried LineOfSightVector(GetPosition(locPlayerLocation), GetPosition(locTargetLocation)) to check if the location is visible to the player, but for some reason it's returning false at all locations and even those blatantly visible.
I've tried LineOfSightVector(GetPosition(locPlayerLocation), GetPosition(locTargetLocation)) to check if the location is visible to the player, but for some reason it's returning false at all locations and even those blatantly visible.
0
Comments
bLineOfSight
This can be used to ensure that spell effects do not go through walls. (Default: FALSE)
... so maybe that will help with what you're trying to do?