|
The value of the spawnflags field is a number, which is
derived by adding up a series of numbers, each representing
some property that the entity might have or not have. Here
for example are the spawnflags for a ordinary
door entity:
- 1 - START_OPEN causes the door to move to its destination when spawned,
and operate in reverse. It is used to temporarily or permanently close off
an area when triggered (not useful for touch or takedamage doors).
- 2 - REVERSE: offsets door angle value by 180 degrees.
- 4 - DOOR_DONT_LINK: normally, if two doors entities touch, they are
assumed
to be connected and operate as a unit. IOW, if they are
used as triggered doors, only one of the two needs to be
targeted. Setting this flag on each will override their
default behavior.
- 8 - TOGGLE: needs trigger for closing as well as opening.
- 16 - SLIDE: function unknown.
- 32 - NORMAL_MOVE: constant-rate movement rather than acceleration.
- 64 - REMOVE_PP: for puzzle_door, puzzle pieces disappear on use.
- 128 - NO_PP: door is blocked if player has puzzle-pieces (display
of no_puzzle_msg's reversed).
So if we want the door to start open, and require a trigger to
close it as well as to open it again, the spawnflags-value
will be 9.
If you're using one of the right map editor, it will let you check
usefully
labelled boxes for the different spawnflag components, and take
care of the arithmetic for you (QuArK is one of the right editors,
don't know about the other ones that support H2).
| |