Spawn: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 1: Line 1:
Parameters:
{{codepointer|description=Spawns an object of the provided type at the calling object's location. Friendliness of the calling object will be transferred to the spawned object.
|usage='''Spawn'''
 
'''misc1''' ''name''
 
'''misc2''' ''z''
|parameters=
*'''misc1''' = Thing mnemonic or DeHackEd number to spawn (must be valid, no default)  
*'''misc1''' = Thing mnemonic or DeHackEd number to spawn (must be valid, no default)  
*'''misc2''' = Integer amount of units to add to z coordinate of object (default = 0)  
*'''misc2''' = Integer amount of units to add to z coordinate of object (default = 0)  
 
|notes=If the type indicated is not valid, the pointer will do nothing. Also note that if both the source and spawned object are solid, they will become stuck to each other. This codepointer is more suitable for boss-brain-like effects.
Spawns an object of the provided type at the calling object's location. Friendliness of the calling object will be transferred to the spawned object.
 
If the type indicated is not valid, the pointer will do nothing. Also note that if both the source and spawned object are solid, they will become stuck to each other. This codepointer is more suitable for boss-brain-like effects.


NOTE: for [[Decorate state syntax|Decorate]] availability, use [[SpawnEx]] or [[SpawnAbove]].
NOTE: for [[Decorate state syntax|Decorate]] availability, use [[SpawnEx]] or [[SpawnAbove]].
 
|seealso=
==See also==
*[[SpawnAbove]]
*[[List of codepointers]]
*[[SpawnEx]]}}
[[Category:Codepointers]]
[[Category:MBF codepointers]]

Latest revision as of 16:13, 17 February 2021

Description

Spawns an object of the provided type at the calling object's location. Friendliness of the calling object will be transferred to the spawned object.

Usage

Spawn

misc1 name

misc2 z

Parameters

  • misc1 = Thing mnemonic or DeHackEd number to spawn (must be valid, no default)
  • misc2 = Integer amount of units to add to z coordinate of object (default = 0)

Examples

No examples given.

Notes

If the type indicated is not valid, the pointer will do nothing. Also note that if both the source and spawned object are solid, they will become stuck to each other. This codepointer is more suitable for boss-brain-like effects.

NOTE: for Decorate availability, use SpawnEx or SpawnAbove.

See also