Modding, Mission Design, and Coding > The Scripting Workshop

Get player's primary firepoints positions?

(1/2) > >>

Kiloku:
I'd like to figure out where in worldspace the firepoints are. I poked around scripting.html but found nothing clear.
Even if I can at least get the relative position to the ship's center, I could calculate the world space position. 

Is it even possible?

X3N0-Life-Form:
This is relevant to my interests.

Colonol Dekker:
You could get them from the pof editor then offset from the players zero?

Kiloku:

--- Quote from: Colonol Dekker on June 29, 2020, 04:33:16 am ---You could get them from the pof editor then offset from the players zero?

--- End quote ---
In that case I'd need to get it manually for each fighter, right? If there's no other choice, I'll do it like that, but if there's any way to get it via script, it'd be much better as I could apply it to any playable fighter from any mod

Nightmare:
SEXP-wise you could do that by using relative XYZ coordinates, an option of get-object-x (and so forth), however the SEXP only returns entire numbers (like 5, but not 5.25).

Navigation

[0] Message Index

[#] Next page

Go to full version