ThingSummon: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 1: Line 1:
Type: Monster attack, parameterized
{{codepointer|description=Powerful codepointer which allows custom Pain Elemental style attacks.
 
|usage='''ThingSummon'''(''thingtype'', ''distance'', ''height'', ''fail_action'', ''relation'')
Parameter Information:  
|parameters=
*Args1 = Name of thing type to summon (default of 0 = thing 0)
*''thingtype'': Name of thing type to summon
*Args2 = Prestep distance (added to distance between thing and summoner)  
*''distance'': Prestep distance (added to distance between thing and summoner)
*Args3 = Z distance of object above summoner's z coordinate.
*''height'': Z distance of object above summoner's z coordinate
*Args4 = One of the following values:  
*''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.  
*Args5 = One of the following values:  
*''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.


Purpose: Powerful codepointer which allows custom Pain Elemental style attacks. 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. New to Eternity Engine v3.33.33.
If ''relation'' is '''makechild''', the spawned object will be killable by codepointers like [[KillChildren]].
[[Category:Codepointers]]
|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.

See also