UsePuzzleItem

129:UsePuzzleItem (item, script, s_arg1, s_arg2, s_arg3)

  • item: Puzzle artifact number
  • script: Script to execute
  • s_arg1: First argument to pass to script
  • s_arg2: Second argument to pass to script
  • s_arg3: Third argument to pass to script

Executes a specified script on the current map if the player holds the specified puzzle artifact, and removes the artifact in the process. If the player does not have the artifact, this plays the “*puzzfail” player sound instead. This special must be placed on a thing or a line and cannot be used in a script.

Standard puzzle artifacts (class names):

This special can also be put on any thing in the map. If that is the case and the player uses the item near this thing the special is also executed.

Script functions
ACS_ExecuteACS_NamedExecute
ACS_ExecuteWaitACS_NamedExecuteWait
ACS_ExecuteAlwaysACS_NamedExecuteAlways
ACS_ExecuteWithResultACS_NamedExecuteWithResult
ACS_LockedExecuteACS_NamedLockedExecute
ACS_LockedExecuteDoorACS_NamedLockedExecuteDoor
ACS_SuspendACS_NamedSuspend
ACS_TerminateACS_NamedTerminate
ScriptWaitNamedScriptWait
FS_ExecuteUsePuzzleItem
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.