IPB

Welcome Guest ( Log In | Register )

Making a plane unlandable?
Salazar
post 8 Sep 2019, 14:28
Post #1



Group Icon

Group: Members
Posts: 7
Joined: 16 July 2017
Member No.: 15609



I have a couple of questions. Basically, I am trying to create a new general power that spawns in a support plane that I can control.
I have got the controllable support plane and the spawning part down, but the problem is I am able to land the plane at an airfield. So far I have tried giving it PRODUCED_AT_HELIPAD and DRONE tag but neither of them works, the plane still is able to land but this time bugs out at the airfield because it thinks it's a helicopter.

The biggest clue to achieve this is from looking at the Acolyte drone with the Airforce General from the Shockwave mod. After testing it seems the Acolyte is unable to land, no matter how many times you tell the thing to land it doesn't react to the command at all. I want to give that same property to the unit I made, but I cannot for the life for me find out where this behavior is given - I have looked over everything related to the Acolyte drone and found nothing out of the ordinary that gives it this behavior.

The second thing I want to do is to put a limit on how many of this unit I can field at once. Since I am deploying it through a general power and not an airfield/warfactory, I have no idea how to set a limit on this (make the special power itself grayed out while a certain number of this unit is already on the field).

Does anyone have any ideas on how to solve these two issues?
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Salazar
post 9 Sep 2019, 2:54
Post #2



Group Icon

Group: Members
Posts: 7
Joined: 16 July 2017
Member No.: 15609



QUOTE (Zeke @ 9 Sep 2019, 2:34) *
1. Instead of making a plane that acts like a chopper, it might be easier to start with a chopper, then make it fly like a plane

2. It can't be done


1) I've tried this. My problem is the "plane" will still be able to land at an airfield, but just not the hangar (it'll land at a helipad when damaged). The behavior I want is for the aircraft to not be able to land AT ALL. The Acolyte drone from Shockwave mod does this, it'll not respond to any commands to land at an airfield even if it is damaged (you get the three green down arrows indicating the command to land, but the Acolyte doesn't respond to this command). I've went through the entire object file for the Acolyte and I cannot for the life for me find where this behavior comes from.

2) What if I make the power a SCIENCE, and make it buildable at an Airfield, but instead of spawning at the hangar of an airfield it's deployed from offmap? Is that possible to achieve? So by all intents and purposes the thing is still a buildable at an Airfield but it just spawns from offmap.


EDIT : Just figured out #1. It was the AIUpdate behavior. The Acolyte drone had "AIUpdateInterface" while I used "JetAIUpdate". Replacing this behavior made it so the plane now doesn't land at the airfield even when given the command to land, even if it is damaged. Now to try to figure out #2...

This post has been edited by Salazar: 9 Sep 2019, 3:05
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 13 June 2024 - 3:13