|
void | ApplyEffect (EffectDuration durationType, Effect effect, TimeSpan duration=default) |
| Applies the specified effect at this location.
|
|
void | CreateTrap (TrapBaseType trap, float size=2.0f, string tag="", string disarm="", string triggered="") |
| Creates the specified trap.
|
|
float | Distance (Location target) |
| Returns the distance to the target.
If you only need to compare the distance, you can compare the squared distance using DistanceSquared to avoid a costly sqrt operation.
|
|
float | DistanceSquared (Location target) |
| Returns the squared distance to the target.
|
|
IEnumerable< NwCreature > | GetNearestCreatures () |
| Gets all creatures near this location, ordered by distance.
|
|
IEnumerable< NwCreature > | GetNearestCreatures (CreatureTypeFilter filter1) |
| Gets all creatures near this location, ordered by distance.
|
|
IEnumerable< NwCreature > | GetNearestCreatures (CreatureTypeFilter filter1, CreatureTypeFilter filter2) |
| Gets all creatures near this location, ordered by distance.
|
|
IEnumerable< NwCreature > | GetNearestCreatures (CreatureTypeFilter filter1, CreatureTypeFilter filter2, CreatureTypeFilter filter3) |
| Gets all creatures near this location, ordered by distance.
|
|
IEnumerable< T > | GetNearestObjectsByType< T > () |
| Gets all objects near this location, ordered by distance.
|
|
IEnumerable< NwGameObject > | GetObjectsInShape (Shape shape, float size, bool losCheck, ObjectTypes objTypes=ObjectTypes.Creature, Vector3 origin=default) |
| Gets all objects in a shape at this location.
|
|
IEnumerable< T > | GetObjectsInShapeByType< T > (Shape shape, float size, bool losCheck, Vector3 origin=default) |
| Gets all objects in a shape at this location of the specified type.
|
|
void | SetTile (int tileId, TileRotation rotation, int height=0, SettleFlags flags=SettleFlags.RecomputeLighting) |
| Changes the tile at this location to a new tile.
|
|
void | SetTileAnimationLoops (bool animLoop1, bool animLoop2, bool animLoop3) |
| Sets the state of the animation loops of the tile at this location.
|
|
void | Dispose () |
|
|
NwArea | Area [get] |
| Gets the associated Area of this location.
|
|
float | FlippedRotation [get] |
| Gets the inverted rotation value of this location (placeables).
|
|
float | GroundHeight [get] |
| Gets the z-offset for the walkmesh at this location.
|
|
bool | IsWalkable [get] |
| Gets a value indicating whether the location is walkable.
|
|
Vector3 | Position [get] |
| Gets the position Vector of this location.
|
|
float | Rotation [get] |
| Gets the rotation value of this location.
|
|
override int | StructureId [get] |
|
int | SurfaceMaterial [get] |
| Gets the surface material index at this location.
Returns 0 if the location is invalid or has no surface type.
|
|
int | TileHeight [get] |
| Gets the height of the tile set at this location.
|
|
int | TileId [get] |
| Gets the id of the tile set at this location.
|
|
TileInfo? | TileInfo [get] |
| Gets the tile information at this location.
|
|
TileMainLightColor | TileMainLightColorOne [get] |
| Gets the color of the first main light in the tile containing this location.
|
|
TileMainLightColor | TileMainLightColorTwo [get] |
| Gets the color of the second main light in the tile containing this location.
|
|
TileRotation | TileRotation [get] |
| Gets the rotation of the tile set at this location.
|
|
TileSourceLightColor | TileSourceLightColorOne [get] |
| Gets the color of the first light source in the tile containing this location.
|
|
TileSourceLightColor | TileSourceLightColorTwo [get] |
| Gets the color of the second light source in the tile containing this location.
|
|
bool | IsValid [get] |
| Gets if this object is valid.
|
|
int | StructureId [get] |
|
A location in the module, represented by area, position and orientation.