UnlinkFromWorld

From ZDoom Wiki
Jump to navigation Jump to search
Note: This feature is for ZScript only.


void UnlinkFromWorld([LinkContext ctx])

Usage

Unlinks the Actor from the sector it's currently in and the block map if it doesn't have the flags preventing it from doing so. This function is largely used before moving the Actor to a new location so it can be relinked upon arrival.

Parameters

  • ctx - null by default. Contains sector and rendering sector information about the current level. This is modified directly by the function so that a local variable can store the updated context to be passed when relinking the Actor.

Examples

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.