Hard Light Productions Forums

Modding, Mission Design, and Coding => The Scripting Workshop => Topic started by: Kiloku on June 28, 2020, 09:09:12 pm

Title: Get player's primary firepoints positions?
Post by: Kiloku on June 28, 2020, 09:09:12 pm
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?
Title: Re: Get player's primary firepoints positions?
Post by: X3N0-Life-Form on June 29, 2020, 01:43:30 am
This is relevant to my interests.
Title: Re: Get player's primary firepoints positions?
Post by: Colonol Dekker on June 29, 2020, 04:33:16 am
You could get them from the pof editor then offset from the players zero?
Title: Re: Get player's primary firepoints positions?
Post by: Kiloku on June 29, 2020, 06:25:22 am
You could get them from the pof editor then offset from the players zero?
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
Title: Re: Get player's primary firepoints positions?
Post by: Nightmare on June 29, 2020, 06:57:14 am
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).
Title: Re: Get player's primary firepoints positions?
Post by: Colonol Dekker on June 29, 2020, 08:38:25 am
I'm confident this excellent community can solve it 👍👍👍