ThingSummon: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{codepointer|description=Powerful codepointer which allows custom Pain Elemental style attacks. | |||
|usage='''ThingSummon'''(''thingtype'', ''distance'', ''height'', ''fail_action'', ''relation'') | |||
|parameters= | |||
*''thingtype'': Name of thing type to summon | |||
* | *''distance'': Prestep distance (added to distance between thing and summoner) | ||
* | *''height'': Z distance of object above summoner's z coordinate | ||
* | *''fail_action'': one of the following values: | ||
**0 or '''kill''': If the object can't fit, it will be killed. | **0 or '''kill''': If the object can't fit, it will be killed. | ||
**1 or '''remove''': If the object can't fit, it will be removed. | **1 or '''remove''': If the object can't fit, it will be removed. | ||
* | *''relation'': One of the following values: | ||
**0 or '''normal''': The object is normal. | **0 or '''normal''': The object is normal. | ||
**1 or '''makechild''': The object is made a child of the summoner. | **1 or '''makechild''': The object is made a child of the summoner. | ||
|notes=Objects will not be spawned in locations where they are stuck, or across blocking lines. There is no limit on the number of objects spawned when using this pointer. | |||
If ''relation'' is '''makechild''', the spawned object will be killable by codepointers like [[KillChildren]]. | |||
[[ | |seealso= | ||
*[[KillChildren]] | |||
*[[PainAttack]] | |||
}} |
Latest revision as of 06:13, 25 April 2021
Description
Powerful codepointer which allows custom Pain Elemental style attacks.
Usage
ThingSummon(thingtype, distance, height, fail_action, relation)
Parameters
- thingtype: Name of thing type to summon
- distance: Prestep distance (added to distance between thing and summoner)
- height: Z distance of object above summoner's z coordinate
- fail_action: one of the following values:
- 0 or kill: If the object can't fit, it will be killed.
- 1 or remove: If the object can't fit, it will be removed.
- relation: One of the following values:
- 0 or normal: The object is normal.
- 1 or makechild: The object is made a child of the summoner.
Examples
No examples given.
Notes
Objects will not be spawned in locations where they are stuck, or across blocking lines. There is no limit on the number of objects spawned when using this pointer.
If relation is makechild, the spawned object will be killable by codepointers like KillChildren.