Hello! i´m trying to develop a simple code for spawn IA plane with Unity... i build this code...
public GameObject AIAircraftSpawner;
public class miko3TriggerPlane : MonoBehaviour{
void OnTriggerEnter(Collider player){
Instantiate(AIAircraftSpawner);
}
}
I don´t know if i codding correctly, i obtain errors in each test. May you help me...? it´s posible spawn an AI Aircraft Spawner when player go to location (for example cube with trigger)? Thanks in advance! ;-)
@FairFireFight Ok! I have seen some errors that may be the cause of your problems ...
a) SampleScene * has an asterisk which means that the scene has not been saved. It is mandatory to save the scene to ensure that the mod is generated later.
b) I noticed that the map is missing "Map start location", which is a mandatory element to generate the map later. You can find the object in Unity's "SimplePlanes" menu. This gives you an object in the hierarchy box that is the player's starting point, which you must position at a certain height. Move it upwards with the positioning arrows and uncheck the "Start on ground" option.
c) Once saved the scene and the project (Ctrl + s) and File Project-> Save, then select "Simple Planes Map" and save "Selected Scene Objects".
d) The rest of the steps are correct and should work. Anyway, if it still does not work, I'll try to make a video to show the process.
@FairFireFight :-( sorry my friend, We will have to think about what step is not doing well ... it works for me without problems ... if you could put several screen impressions, with the steps that you are taking from the beginning, since you create the project until you are with the problem, maybe we can find a solution ...
There can be several things:
a) The Asset version of SimplePlanes is not suitable for Unity 2018. Make sure you delete the SimplePlanes asset from your project. After loading the SimplePlanes mod tools asset you can find it in the path "C: \ Program Files (x86) \ Steam \ steamapps \ common \ SimplePlanes \ ModTools"
b) If this does not work, then it may be because another asset that is causing that error has been loaded. For example, the Terrain Toolkit 2017 fails me. In your case it may be another asset that you have obtained from the Unity asset store. Not all assets are compatible with SimplePlanes
c) If it still does not work, eliminate everything, except the terrains, and recreate the "Simple Planes Map" and within its hierarchy, the terrain and the starting position of the player. Make sure that the player's starting position is at a sufficient height and does not start at sea or on the ground, at least in the first tests.
If after all it does not work, I could not tell you, I would have to see the assets you are using and see more screens to find out what happens ...
@ColonelStriker I was thinking of several options ...
a) Multirole carrier capable
b) Jet Trainer Air Festival
c) BVR combat aircraft
d) MACH 3 Challenge
@FairFireFight I think the error could be due to that "Pure Mod Tools". It happens to me when I install the Terrain Toolkit mod. The textures can be loaded without the need for Mods. You only need to copy the textures and paste them into a folder that you will create with the name "textures", in the path of the Unity project you are doing. For example, in the path "C: / Documents / nameOfyourProject / Assets / Textures" When you paste the images, they are automatically recognized in your project.
As for the SimplePlanes mod, when you import it for the first time, it will appear in the "Windows" menu. You select it and you can drag the tool window.
@FairFireFight ok in this case could be a Asset that you import un Unity. I get these error when i use Terrain Toolkit 2017... Still not find a solution...
@FairFireFight It could be due the version of Unity. This tutorial was made for Simpleplanes 1.7. the new version of Simpleplanes os 1.8 and works peoperly with Unity 2018...
@belugasub When I wanted to move the plane to your post to make it successor, I find that the editor changes the position of half of the pieces on the left side. Although it is not very appreciable, it does affect the stability of the flight. Anyway, I do not want to abuse your kindness. If you think i should not participate with this plane, I will try to make another plane and this time, starting from your post.
I just finished the plane, but I can not make it a successor, because in doing so the plane loses its balance. Could you make an exception with my case?
@belugasub Thank you very much!
Great work! Thank you very much!
@JohnnyBoythePilot yes this is the idea, i making a map mod as example for all community
+1@FairFireFight i will check your problem...
+1@WNP78 Thank you very much for the information, I came to a similar conclusion. Trigger matter
@JamesBleriot Roger that!
@MisterT i will share with all community ;-)
@MOPCKOEDNISHE @Aerofy
@MisterT @DuckMint @Chancey21
+1@Lahoski107 Thank you!
Hello! i´m trying to develop a simple code for spawn IA plane with Unity... i build this code...
public GameObject AIAircraftSpawner;
public class miko3TriggerPlane : MonoBehaviour{
void OnTriggerEnter(Collider player){
Instantiate(AIAircraftSpawner);
}
}
I don´t know if i codding correctly, i obtain errors in each test. May you help me...? it´s posible spawn an AI Aircraft Spawner when player go to location (for example cube with trigger)? Thanks in advance! ;-)
@HarryBen47 Good idea!
@ColonelStriker yes its a rockets craft
@Aerofy https://www.simpleplanes.com/Mods/View/823920/FreeCam
@Aerofy yes i use a FOV mod
@WIZARD2017 that type of missile you want to do?
@WIZARD2017 You can also reuse a custom missile and modify or adapt it directly from the game ...
@WIZARD2017 take a look here https://www.youtube.com/watch?v=WsCdSb8xlP8
@Lahoski107 That's weird ... I think I'm going to have to record a video with the step-by-step ...
@FairFireFight Ok! I have seen some errors that may be the cause of your problems ...
a) SampleScene * has an asterisk which means that the scene has not been saved. It is mandatory to save the scene to ensure that the mod is generated later.
b) I noticed that the map is missing "Map start location", which is a mandatory element to generate the map later. You can find the object in Unity's "SimplePlanes" menu. This gives you an object in the hierarchy box that is the player's starting point, which you must position at a certain height. Move it upwards with the positioning arrows and uncheck the "Start on ground" option.
c) Once saved the scene and the project (Ctrl + s) and File Project-> Save, then select "Simple Planes Map" and save "Selected Scene Objects".
d) The rest of the steps are correct and should work. Anyway, if it still does not work, I'll try to make a video to show the process.
@FairFireFight :-( sorry my friend, We will have to think about what step is not doing well ... it works for me without problems ... if you could put several screen impressions, with the steps that you are taking from the beginning, since you create the project until you are with the problem, maybe we can find a solution ...
@Luuk2909 Thank you my friend! and wellcome!
+1@FairFireFight This is the problem you use the Mod Tools of the post previous of version 1.8, try this other...
http://www.simpleplanes.com/ModTools/SimplePlanes_ModTools.zip This link is from https://www.reddit.com/r/simpleplanes/wiki/modding
So, first, create a new project and load only the new asset that I indicate here, to see how it works ...
I´m in!!
@NathanMikeska
There can be several things:
a) The Asset version of SimplePlanes is not suitable for Unity 2018. Make sure you delete the SimplePlanes asset from your project. After loading the SimplePlanes mod tools asset you can find it in the path "C: \ Program Files (x86) \ Steam \ steamapps \ common \ SimplePlanes \ ModTools"
b) If this does not work, then it may be because another asset that is causing that error has been loaded. For example, the Terrain Toolkit 2017 fails me. In your case it may be another asset that you have obtained from the Unity asset store. Not all assets are compatible with SimplePlanes
c) If it still does not work, eliminate everything, except the terrains, and recreate the "Simple Planes Map" and within its hierarchy, the terrain and the starting position of the player. Make sure that the player's starting position is at a sufficient height and does not start at sea or on the ground, at least in the first tests.
If after all it does not work, I could not tell you, I would have to see the assets you are using and see more screens to find out what happens ...
+2Incredible!! Good job!!
@Chancey21 Great plane ;-)
+1@ColonelStriker I was thinking of several options ...
a) Multirole carrier capable
b) Jet Trainer Air Festival
c) BVR combat aircraft
d) MACH 3 Challenge
very nice!
@Strikefighter04 yes of course
@Ryn176 It´s an experimental map, but in brief will be publish a special map mod named "Ankoristan"
@FairFireFight I think the error could be due to that "Pure Mod Tools". It happens to me when I install the Terrain Toolkit mod. The textures can be loaded without the need for Mods. You only need to copy the textures and paste them into a folder that you will create with the name "textures", in the path of the Unity project you are doing. For example, in the path "C: / Documents / nameOfyourProject / Assets / Textures" When you paste the images, they are automatically recognized in your project.
As for the SimplePlanes mod, when you import it for the first time, it will appear in the "Windows" menu. You select it and you can drag the tool window.
@FairFireFight ok in this case could be a Asset that you import un Unity. I get these error when i use Terrain Toolkit 2017... Still not find a solution...
@FairFireFight Ok in this case it´s probably you need install the MacOS Mono Support from this page... https://unity3d.com/es/unity/whats-new/2018.3.8, the file you need is this... https://download.unity3d.com/downloadunity/fc0fe30d6d91/TargetSupportInstaller/UnitySetup-Mac-Mono-Support-for-Editor-2018.3.8f1.exe?ga=2.54893163.1730527016.1555768834-2125672501.1552067674
@FairFireFight It could be due the version of Unity. This tutorial was made for Simpleplanes 1.7. the new version of Simpleplanes os 1.8 and works peoperly with Unity 2018...
@FairFireFight yes, in brief will complete this
@AerialFighterSnakes yes! Of course!
@FairFireFight I do not remember that file ... what is it used for?
@FairFireFight Take a look in the following path C:\Program Files (x86)\Steam\steamapps\common\SimplePlanes\ModTools
Wow
@Carbonfox1 no, the F-100 was build by @ChiChiWerx
@metallicplanes The planes was build by:
@ChiChiWerx Your F-100 is great too! i appreciate your work
@belugasub No problem, i understand it. Now i working on a new jet ;-)
+1@MisterT @ChiChiWerx
@metallicplanes I've seen the game, but I have not tried it (war thunder). How is that game?
Sorry, I had to republish for the images to appear. Thank you!! @EternalDarkness
@belugasub When I wanted to move the plane to your post to make it successor, I find that the editor changes the position of half of the pieces on the left side. Although it is not very appreciable, it does affect the stability of the flight. Anyway, I do not want to abuse your kindness. If you think i should not participate with this plane, I will try to make another plane and this time, starting from your post.
I just finished the plane, but I can not make it a successor, because in doing so the plane loses its balance. Could you make an exception with my case?
@ThePilotDude this is because the Simpleplanes 1.8 require a new version of Unity, in this case Unity 2018.3.12f1