Boolean Function that Determines Valid Location
Smithicus
Member Posts: 21
Is there a command that can be used to determine if a location is accessible/valid?
EXAMPLE:
int IsThisLocationValid(location lSpot)
{
return ThisIsTheCommand(lSpot);
}
In short, will a selected location be inside a wall, unseen or inaccessible to the PC?
[I have created a Ring of Telekinesis that pushes useable placeables away from the ring-bearer; however, the placeables can end up inside walls. Wanting to check for that.]
EXAMPLE:
int IsThisLocationValid(location lSpot)
{
return ThisIsTheCommand(lSpot);
}
In short, will a selected location be inside a wall, unseen or inaccessible to the PC?
[I have created a Ring of Telekinesis that pushes useable placeables away from the ring-bearer; however, the placeables can end up inside walls. Wanting to check for that.]
0
Comments
// Get the surface material at the given location. (This is
// equivalent to the walkmesh type).
// Returns 0 if the location is invalid or has no surface type.
int GetSurfaceMaterial(location at)