SpawnObject: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(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...")
 
(No difference)

Latest revision as of 15:50, 12 October 2024

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