Skip to content

Conversation

ifeldshteyn
Copy link
Contributor

@ifeldshteyn ifeldshteyn commented Jun 6, 2025

This is a POC - projectile offset spawning code. Now you can tell the game exactly where to spawn the projectile. This will work no matter where the actor is facing.

// Projectile spawn details guide.
//
// Z value positive = projectile spawns to the LEFT of actor
// Z value negative = projectile spawns to the RIGHT of actor
// X value postivie = projectile spawns in FRONT of actor
// X value negative = projectile spawns BEHIND the actor
// Y value positive = projectile spawns BELOW the actor
// Y value negative = projectile spawns ABOVE the actor
//

I am adding an example logic offset. The stormtrooper cannot move but the rockets will spawn depending the offset values.

  "fireOffset": [
      0,
      -4,
      5
  ],

OFFSET.zip

@ifeldshteyn
Copy link
Contributor Author

Note @luciusDXL @jerethk I think we need to up the serialization version for the additional variable?

@ifeldshteyn ifeldshteyn closed this Sep 9, 2025
@ifeldshteyn
Copy link
Contributor Author

It was merged with jereth's PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants