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 number The X coordinate of the thing
y number The Y coordinate of the thing
type number The thing type
angle number The direction the thing is facing in degrees, with 0 being east.

Constructors

No Constructors

This type can not be created directly in scripts.

Functions

flag

Parameters

  • string flag_name: The name of the flag to check

Returns boolean

Returns true if the given flag is set.

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

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

setAnglePoint

Parameters

  • Point position: Position in map coordinates

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