Location of Spawned Entities? Created 17 years ago2007-01-27 17:55:10 UTC by GeodeLX GeodeLX

Created 17 years ago2007-01-27 17:55:10 UTC by GeodeLX GeodeLX

Posted 17 years ago2007-01-27 17:55:10 UTC Post #210824
I'm creating a prefab for spawning weapons. I have the following:
  • An AK47 with 800 rounds (name: full_weapon_ak47) with an output set to "OnPlayerPickup, ForceSpawn full_weapon_entity_maker_&i) after 2 seconds"
  • A point_template (name: full_weapon_point_template_&i) with Template1 set to full_weapon_ak47
  • An env_entity_maker (name: full_weapon_entity_maker_&i) with the Point_template to spawn set to full_weapon_point_template_&i
  • A logic_timer (name: full_weapon_logic_timer_&i) set to fire full_weapon_entity_maker_&i initially to create the first weapon.
It works almost right. The weapon spawns initially, so the timer is working. When I pick up the weapon, another one spawns after 2 seconds.

The problem: the weapon doesn't spawn at any origin that I can determine. It doesn't spawn at the origin of its model, the origin of the env_entity_maker, the origin of the timer, or the origin of the point_template.

Is there some secret to forcing the spawn location? What have I missed?

Thanks!

[edit] There's absolutely NOTHING in the way of it spawning (nothing within a few hundred units).
Posted 17 years ago2007-01-27 19:16:21 UTC Post #210830
Where is it spawning in relation to all of these origins? A few units off or several hundred? Is it spawning at the correct height/x coordinate/y coordinate or the correct rotation?
Posted 17 years ago2007-01-27 23:41:50 UTC Post #210872
Rotation is correct. It spawns 8-16 units higher (Z+), 16-32 units forward (X+), and 4-8 units right (Y+) of the env_entity_maker's origin.

It wouldn't be too bad, except I'm trying to get it to spawn onto a shelf/gun cabinet.
You must be logged in to post a response.