SpawnObject

From Eternity Wiki
Revision as of 14:50, 12 October 2024 by Printz (talk | contribs) (Created page with "{{Codepointer|description=Generic actor spawn function. |usage='''A_SpawnObject'''(''thingtype'', ''angle'', ''offsetx'', ''offsety'', ''offsetz'', ''velx'', ''vely'', ''velz'') |parameters= *''thingtype'': name of thing to spawn *''angle'': degrees relative to spawner's angle to give to the new thing *''offsetx'', ''offsety'', ''offsetz'': offset relative to actor's facing: to the right, forward and upwards respectively. *''velx'', ''vely'', ''velz'': optional velocity...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

Generic actor spawn function.

Usage

A_SpawnObject(thingtype, angle, offsetx, offsety, offsetz, velx, vely, velz)

Parameters

  • thingtype: name of thing to spawn
  • angle: degrees relative to spawner's angle to give to the new thing
  • offsetx, offsety, offsetz: offset relative to actor's facing: to the right, forward and upwards respectively.
  • velx, vely, velz: optional velocity to apply, again relative to actor's facing

Examples

No examples given.

Notes

Important: unlike some other codepointers such as Spawn, this one does not transfer friendliness.

See also