Linedef type 443
The tag given to this linedef is irrelevant. To make a Lua function executable by this linedef executor, it needs to be added to the
LinedefExecute hook with the command
addHook("LinedefExecute", function, "NAME").
function is the name of the function to be executed. It must take two arguments: the control linedef and the Object that triggered the linedef executor.
NAME is the name by which the linedef can then reference the function. This name should be written in the control linedef's front upper texture field. If the name is longer than eight characters, it continues in the front middle texture and front lower texture fields.
- Example file: ex_ld443_callluafunction.wad (MAP01)
- The function in this example,
verticalBoost, sets the vertical momentum of the triggering Object to the length of the control linedef, divided by 4.
- The function is referenced by the name
EXAMPLEin the control linedef's front upper texture.
|How to use|