Fractal Softworks Forum

Starsector => Bug Reports & Support => Bug Reports & Support (modded) => Topic started by: Clockwork Owl on May 29, 2017, 05:24:35 AM

Title: Unable to lock controls of fighters
Post by: Clockwork Owl on May 29, 2017, 05:24:35 AM
both noStrafing = TRUE on ship_systems.csv and ShipAPI.setControlsLocked(true); via script does not prevent a bomber from strafing near its target.
Title: Re: Unable to lock controls of fighters
Post by: Alex on May 29, 2017, 09:02:28 AM
Yeah, pretty much a consequence of how fighters work. If you really need to lock their controls, you'd have to set their facing and velocity directly.
Title: Re: Unable to lock controls of fighters
Post by: Clockwork Owl on May 29, 2017, 05:49:29 PM
...How do I set the velocity, though?
Title: Re: Unable to lock controls of fighters
Post by: Alex on May 29, 2017, 06:09:41 PM
ship.getVelocity().set(x, y) should do it.
Title: Re: Unable to lock controls of fighters
Post by: Clockwork Owl on May 29, 2017, 09:24:59 PM
It immediately ejects them to oblivion. :D

EDIT: Nevermind, I was doing it wrong XD Fixed. But the fighters are still strafing out of course.