Script control linedef types: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(small gone)
(→‎Parameterized specials: fixed duplicate info)
 
Line 12: Line 12:


==Parameterized specials==
==Parameterized specials==
{{zdoomwiki}}
See [[Detailed_parameterized_linedef_specification#ACS_Scripts|Detailed parameterized linedef specification, scripts section]]
Eternity supports the following ACS parameterized specials:
*365:'''ACS_Execute'''(''scriptnum'', ''mapnum'', ''arg0'', ''arg1'', ''arg2'')
:Executes the specified script. A map value of zero indicates that the script is on the current map. If the script is on a different map, then the execution of the script will be delayed until the player enters the map that contains it. Only one copy of a script can be running at a time when started with this special.
:If the specified script was previously executed but then suspended, then execution will begin at the point immediately after where it was suspended instead of starting over again at the beginning.
:The number of usable arguments is limited to 3.
*366:'''ACS_Suspend'''(''scriptnum'', ''mapnum'')
:Suspends execution of a script until an ACS_Execute special resumes it.
*367:'''ACS_Terminate'''(''scriptnum'', ''mapnum'')
:Terminates the script.
 
''Back to [[Linedef types]]''
[[Category:Editing reference]]
[[Category:Editing reference]]

Latest revision as of 15:38, 25 February 2016

These linedefs are used to start ACS scripts in Doom format maps, without having to use the ACS_Execute parameterized special by ExtraData. See the ACS documentation for information on Action Code Script.

  • 280:WR Start script with tag number
  • 273:WR Start script, 1-way trigger
  • 274:W1 Start script with tag number
  • 275:W1 Start script, 1-way trigger
  • 276:SR Start script with tag number
  • 277:S1 Start script with tag number
  • 278:GR Start script with tag number
  • 279:G1 Start script with tag number

These linedefs exist for all activation models. The two one-way script activators will only be activated when the player crosses them from the first side, as with other line types which function in that manner. Crossing from the second side will have no effect.

Parameterized specials[edit]

See Detailed parameterized linedef specification, scripts section