Skip to content

MapThing

Type

MapThing

Represents a map thing (ie. an item/actor on the map).

Inherits MapObject

All properties and functions of MapObject can be used in addition to those below.

Properties

Property Type Description
x float The X coordinate of the thing
y float The Y coordinate of the thing
type integer The thing type
angle integer The direction the thing is facing in degrees, with 0 being east.

Constructors

No Constructors

This type can not be created directly in scripts.

See:

Functions

Overview

Info

Flag(flagName) -> boolean

Modification

SetAnglePoint(position)


Flag

Parameters

  • flagName (string): The name of the flag to check

Returns

  • boolean: true if the given flag is set

Notes

If the parent Map's format is UDMF, this behaves exactly the same as MapObject.BoolProperty. Otherwise, flagName needs to be one of the following:

  • skill1
  • skill2
  • skill3
  • skill4
  • skill5
  • single
  • coop
  • dm
  • class1
  • class2
  • class3

SetAnglePoint

Sets the angle property so that the thing is facing towards position.

Parameters

  • position (Point): Position in map coordinates