A_ChangeLinkFlags

From ZDoom Wiki
Jump to navigation Jump to search

void A_ChangeLinkFlags [(int blockmap [, int sector])]

Usage

Changes the NOBLOCKMAP and NOSECTOR flags. These flags are special in that they require more to be done than simply setting them. As such, any changes to these flags should be done through this function unless you know how to do it manually via UnlinkFromWorld and LinkToWorld.

Parameters

  • blockmap: Setting this to true sets the NOBLOCKMAP flag and removes the Actor from the blockmap. Setting this to false will unset the flag and re-add the Actor to the blockmap. Default is FLAG_NO_CHANGE.
  • sector: Setting this to true sets the NOSECTOR flag and removes the Actor from its current sector's information (the Actor itself remains where it is). Setting this to false will unset the flag and re-add the Actor to its current sector's information. Default is FLAG_NO_CHANGE.

Example

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.