SpawnVisualThinker

From ZDoom Wiki
Jump to navigation Jump to search

LevelLocals

VisualThinker SpawnVisualThinker (Class<VisualThinker> type) (New from 4.12.1)

Usage

A LevelLocals function to spawn a VisualThinker. Returns a pointer to the spawned VisualThinker.

This function can be called globally using the level global pointer, for example: level.SpawnVisualThinker('MyVisualThinker').

Parameters

  • Class<VisualThinker> type
The class type to spawn. The class must be based on VisualThinker.

Return values

Returns a pointer to the spawned VisualThinker instance, which can then be modified.

See also