Spawn: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(New page: Type: Miscellaneous, parameterized Parameter Information: *Unknown 1 = DeHackEd number of thing type to spawn (must be valid, no default) *Unknown 2 = Integer amount of units to add to...)
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Type: Miscellaneous, parameterized
{{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'''


Parameter Information:
'''misc1''' ''name''
*Unknown 1 = DeHackEd number of thing type to spawn (must be valid, no default)
*Unknown 2 = Integer amount of units to add to z coordinate of object (default = 0)


Purpose: 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. This codepointer is new to MBF.
'''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)
|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.


Notes: This codepointer will no longer crash on invalid thing type numbers as of Eternity Engine v3.31 public beta 3. 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]].
 
|seealso=
Thunk: Yes.
*[[SpawnAbove]]
*[[SpawnEx]]}}

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