PatrickAWlson Posted September 15, 2020 Posted September 15, 2020 let's say I have a plane and I might want it to spawn here or there depending on a this check zone or that check zone being triggered. Is there any way to have the plane on the map, disabled, then change the location of the plane and enable it?
=RS=Stix_09 Posted September 15, 2020 Posted September 15, 2020 (edited) 32 minutes ago, PatrickAWlson said: let's say I have a plane and I might want it to spawn here or there depending on a this check zone or that check zone being triggered. Is there any way to have the plane on the map, disabled, then change the location of the plane and enable it? I know you can despawn and respawn a plane in a dif location, but location of respawn is fixed at mission creation, its not dynamic as we don't have logic to query position and update an objects position it in the editor basically u despawn the object and recreate a new one at the dif location see activate, deactivate(used to toggle object on off), delete and spawner(used to delete and create an object) MCU's in the "Mission Editor and Multiplayer Server Manual" Edited September 15, 2020 by =RS=Stix_09
JimTM Posted September 16, 2020 Posted September 16, 2020 Have a look at "Example: Spawn an AI Fighter at Random Locations Whenever a Player Enters a Zone" on pg. 112 of the editor manual. The key is the "Spawn at me" option in the spawner trigger MCU. Instead of the random switch, you could use your checkzones. 1
PatrickAWlson Posted September 16, 2020 Author Posted September 16, 2020 Key point: I am not spawning. I am enabling a disabled plane. That is really the whole purpose of the larger change is to get away from spawning planes so I can use formations and cover commands. So I have the plane, disabled, at a point on the map. I would like to do a sequence where I change its position and then enable it.
Sketch Posted September 16, 2020 Posted September 16, 2020 13 minutes ago, Gambit21 said: I think he wants the same entity moved The player doesn't know the difference...
Gambit21 Posted September 16, 2020 Posted September 16, 2020 Just now, Sketch said: The player doesn't know the difference... Nope - but I think it’s for under the hood performance reasons and the sheer amount of aircraft and logic he’s dealing with. Also that aircraft has to be manually placed - he needs them to appear anywhere (I think)
jollyjack Posted September 16, 2020 Posted September 16, 2020 (edited) 19 hours ago, PatrickAWlson said: let's say I have a plane and I might want it to spawn here or there depending on a this check zone or that check zone being triggered. Is there any way to have the plane on the map, disabled, then change the location of the plane and enable it? 32 minutes ago, Gambit21 said: I think he wants the same entity moved A trick for a train going through a tunnel? ... railway route permitted, or an 'off-road' train LoL. Just realized how many train tunnels are standard in the Rheinland map area, probably in other (mountain rich) areas like Kuban too. Any tricks yet? Maybe Lizlemon has an idea ? And then there were al them underground facilities the nazis built, well, actually their enslaved workers from all over Europe. . Uhh, Normandy, any Atlantic Wall plans? Edited September 16, 2020 by jollyjack
PatrickAWlson Posted September 16, 2020 Author Posted September 16, 2020 1 hour ago, Sketch said: Like this? I have that. I am creating dozens of instances of the plane in a disabled state to emulate its route. When the player trips a proximity CZ the associated instances are enabled and the activation of all further instances is disabled. That works mechanically. Issue: That many disabled planes is producing a performance issue. If I can have a single instance of the plane and move its location before it is enabled then I would not need many disabled instances of each plane. So right now I am trying to solve a performance problem and not a mechanical one. Apologies if the initial post was not detailed enough for folks to understand the purpose.
Gambit21 Posted September 16, 2020 Posted September 16, 2020 @PatrickAWlson at what point (how many) disabled aircraft on the map do you begin to see performance issues? What form do these issues take? Time dilation?
Gambit21 Posted September 16, 2020 Posted September 16, 2020 I’m going to design a few tests on the Rhineland map and try and determine where trouble begins. My next project will rely heavily on randomized, “spawn/activate anywhere” logic for enemy and some friendly flights.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now