Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: The E on August 02, 2009, 06:22:10 pm

Title: Rolling ships
Post by: The E on August 02, 2009, 06:22:10 pm
Here's a random little question: Is it actually possible to get a capital ship to bank (i.e roll on its Z-axis) in a mission? Either via sexps or under AI control? Just curious, since I cannot remember any big ship actually performing a maneuver like that, and because its absence is a bit weird, to be honest. One would think that, in space warfare, a maneuver as basic as that would be commonplace....
Title: Re: Rolling ships
Post by: Colonol Dekker on August 02, 2009, 06:24:58 pm
Check the sexps under "object manipulation" i can't remember if any are there, buit if they are.. It's where they will be. :)
Title: Re: Rolling ships
Post by: The E on August 02, 2009, 06:41:36 pm
Code: [Select]
set-object-facing
Sets an object's orientation to face the specified coordinates. Takes 4 arguments...
1: The name of an object.
2: The X coordinate to face.
3: The Y coordinate to face.
4: The Z coordinate to face.
5: Turn time in milliseconds (optional)
6: Bank (optional)

set-object-facing-object
Sets an object's orientation to face the specified object. Takes 2 arguments...
1: The name of an object.
2: The object to face.
3: Turn time in milliseconds (optional)
4: Bank (optional)

Those are the closest ones. Unfortunately, there doesn't seem to be an explanation anywhere for what "Bank" does, or what input it takes.
Title: Re: Rolling ships
Post by: General Battuta on August 02, 2009, 08:06:03 pm
Bank does not, so far as I can tell, work. I've been trying to roll ship for months now, but it's unreliable.
Title: Re: Rolling ships
Post by: NGTM-1R on August 02, 2009, 08:30:38 pm
There is no method to do this.
Title: Re: Rolling ships
Post by: karajorma on August 03, 2009, 01:23:24 am
IIRC Bank is a boolean that tells the ship whether or not it is allowed to bank in order to make the turn. It's not an order to bank.
Title: Re: Rolling ships
Post by: The E on August 03, 2009, 06:15:25 am
Well...could functionality like that be added? I would think that semi-realistic universes (like Diaspora) could benefit from this. Not to mention that it would look really cool, I think.
Title: Re: Rolling ships
Post by: Stormkeeper on August 28, 2009, 11:00:50 am
Not to mention ships with weapons mounted on their upper-surface could be given an order to execute a barrel roll and bring their upper weapons to bear.
Title: Re: Rolling ships
Post by: Wanderer on August 28, 2009, 01:03:19 pm
Rolling isn't that difficult to set.. however it requires different set of controls than currently available to ships via sexp (iirc).

For example via script it is not that difficult to do. Hardest thing is to make the darn thing stop in time :P
Title: Re: Rolling ships
Post by: Stormkeeper on August 28, 2009, 08:04:39 pm
I can see it now ... The Colossus barrel rolling to smack pesky cruisers in its blind spot. And I mean 'smack' in a literal sense.
Title: Re: Rolling ships
Post by: Thaeris on August 28, 2009, 10:33:05 pm
I once tried a simulation in FRED where a massive fleet of Terran ships were sent to attack the Sathanes. Several allied bombers got smacked to death by the Colly before I figured out how to turn the beams on...

I do think I recall the smaller ships rolling to attack the target... I believe the Deimos Corvettes did as such...

-Thaeris