Jump to content
all3n

Blackfish Auto-orbit script?

Recommended Posts

Been mentioning this to a few people as im not knowledgeable enough to do it myself, im VERY interested in an Auto-Orbiting script for the Blackfish gunship for pilots. A little more in depth explanation would be i place a marker on my map, and my blackfish will automatically circle that marker at set ranges. Say 1000,1500,2000,2500,3000? hopefully a way similar to the Autopilot-landing works, so that i can use this as a pilot and take over controls when i need to. as of now ive been circling manually and while it works fine, we usually stay in a single AO for 30+ minutes so holding a perfect orbit gets tiring very quickly. Hopefully im not the only one thats thought of this  :D

Share this post


Link to post
Share on other sites

Been mentioning this to a few people as im not knowledgeable enough to do it myself, im VERY interested in an Auto-Orbiting script for the Blackfish gunship for pilots. A little more in depth explanation would be i place a marker on my map, and my blackfish will automatically circle that marker at set ranges. Say 1000,1500,2000,2500,3000? hopefully a way similar to the Autopilot-landing works, so that i can use this as a pilot and take over controls when i need to. as of now ive been circling manually and while it works fine, we usually stay in a single AO for 30+ minutes so holding a perfect orbit gets tiring very quickly. Hopefully im not the only one thats thought of this  :D

Have you looked at the "Loiter" waypoint?

Share this post


Link to post
Share on other sites

Have you looked at the "Loiter" waypoint?

I have, Although im looking for something i can use while i am in the pilot seat, and can make adjustments on loiter range

Share this post


Link to post
Share on other sites

I think this would be great, especially if we could get it to work in VTOL mode as well. Low to no speed, low hover <100 off the ground for fast rope or rappelling. 

Share this post


Link to post
Share on other sites

I have, Although im looking for something i can use while i am in the pilot seat, and can make adjustments on loiter range

 

The loiter waypoint can do that aswell.

You could simply use an addaction or mapclick that creates a loiter waypoint and actions to increase/decrease the loiter range and altitude.

 

 

Its all there:

 

https://community.bistudio.com/wiki/onMapSingleClick

https://community.bistudio.com/wiki/addAction

https://community.bistudio.com/wiki/setWaypointLoiterRadius

https://community.bistudio.com/wiki/setWaypointLoiterType

https://community.bistudio.com/wiki/flyInHeight

https://community.bistudio.com/wiki/flyInHeightASL

Share this post


Link to post
Share on other sites

The loiter waypoint can do that aswell.

You could simply use an addaction or mapclick that creates a loiter waypoint and actions to increase/decrease the loiter range and altitude.

 

 

Its all there:

 

https://community.bistudio.com/wiki/onMapSingleClick

https://community.bistudio.com/wiki/addAction

https://community.bistudio.com/wiki/setWaypointLoiterRadius

https://community.bistudio.com/wiki/setWaypointLoiterType

https://community.bistudio.com/wiki/flyInHeight

https://community.bistudio.com/wiki/flyInHeightASL

 

 

He isn't trying to make an AI blackfish fly in circles, he is trying to create a script that will "autopilot" the blackfish to act as if it was piloted by an AI at a loiter waypoint, but while a human player is piloting it.  Like the auto-land action for jets, which takes over control of the plane while a human is in the cockpit.

 

My guess would be a loop that uses setVelocity and setVectorDirAndUp with a bit of vector geometry math.

Share this post


Link to post
Share on other sites

Thats still basically the same story.

 

1. Move the player out of the pilot seat

2. Spawn an AI in his stead

3. Switch the players camera to the AI.

4. Give loiter waypoint to the AI

5. Switch back and delete the AI when you turn it off.

 

 

 

setVelocity is also possible but would raise plenty of other potential issues, which can easily get rather complicated.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×