SetSpecial: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 1: Line 1:
A_SetSpecial(special, arg1, arg2, arg3, arg4, arg5)
{{codepointer
|description=Changes actor's assigned [[Detailed parameterized linedef specification|special]] and arguments.
|usage='''SetSpecial'''(''special'', ''arg1'', ''arg2'', ''arg3'', ''arg4'', ''arg5'')
|parameters=
*''special'': name or UDMF namespace ID of special to assign to thing. Do not use the ExtraData special ID.
*''arg1-5'': the arguments to go with the special. Only numbers are supported.
|notes=
This will change actor's assigned special to the intended one. This special is going to be executed when the actor is killed or picked up.


This [[List of codepointers|codepointer]] sets the [[Detailed parameterized linedef specification|parameterized special]] and the arguments on the actor.
You can clear an already given special by setting ''special'' to 0. A warning message will appear if you provide an invalid ''special''.}}
[[Category:Codepointers]]

Latest revision as of 07:48, 25 April 2020

Description

Changes actor's assigned special and arguments.

Usage

SetSpecial(special, arg1, arg2, arg3, arg4, arg5)

Parameters

  • special: name or UDMF namespace ID of special to assign to thing. Do not use the ExtraData special ID.
  • arg1-5: the arguments to go with the special. Only numbers are supported.

Examples

No examples given.

Notes

This will change actor's assigned special to the intended one. This special is going to be executed when the actor is killed or picked up.

You can clear an already given special by setting special to 0. A warning message will appear if you provide an invalid special.

See also