![]() |
|
#1
|
|||
|
|||
![]()
Hello all, is there a way to make static aircraft destructable? I tried just putting AI aircraft on the airfields, but they take too much of a toll on performance.
|
#2
|
|||
|
|||
![]()
Hi mate,
as far as I know they are not real destructible (in parts) they are only smoking and texture went black but I believe you can despawn them,their names can be found in your xxx,mis file [Stationary] EDIT: are you using flyable plane's? unflyable have a little bit better performance Last edited by Longbone; 06-01-2011 at 09:00 AM. |
#3
|
|||
|
|||
![]()
Hi Longbone. I'm using a combination of flyable and non-flyable aircraft. I've decided to just use static aircraft since I'm not able to get anywhere near the numbers I want with AI aircraft.
Can you elaborate more on how to despawn them? I've tried using scripts, but apparently static aircraft aren't considered AiActors so I don't know how to access them. I'm pretty good with C#, but this FMB is killing me. ![]() |
#4
|
|||
|
|||
![]() Quote:
sorry I didn't mean static aircraft,I mean nonflyable (by human) AiAircraft. I've made an little example mission, since I'm not an enlightened C# scripter I hope you not get an horror it's made by an noop (me). ![]() there is also a list for the cutlimb commands you can use Cheers Edit this thing (FMB) kills almost everyone Last edited by Longbone; 06-02-2011 at 11:29 PM. |
#5
|
|||
|
|||
![]()
Thanks, Longbone. I already know how to destroy AI aircraft (in a variety of ways), but your code made me wonder if I can access the static aircraft using the gpActorByName() method. Probably not if they're not considered AiActors, but it's worth a shot. I have a mission where static aircraft are respawned after all the static aircraft at a particular airfield are destroyed, but the wreckage is still there. Over time it will just keep building up.
|
#6
|
|||
|
|||
![]()
Hi mate,
I think there must be a solution to access static aircraft like other static object's gpgroundgroup,aigroundgroup etc but if so, is there a way to really despawn them or move them to another location x0.00 y0.00 ?. If I look at other scripts they always destroy them and then you have garbage that not dissapears. If you destroy an AiAircraft there is sometimes garbage too, but he disappear mostly gradually I think this is an engine fault,so i would use AiAircraft with 0gasoline and place little static targets between them, if they not get damaged enough to despawn, do it by a script and wait for a moment till garbage disappears,then respawn (reload) units. I hope eventually our trouble is patched away and we get a manual for this THING!!! ![]() Edit: is there a way to edit Strings in C# automatically like a counter do "Bob_f_218Sqn:001" ..."Bob_f_218Sqn:002"..."Bob_f_218Sqn:003".... as you see in my script it is made complicated a little bit ![]() I still have a lot to learn Cheers |
![]() |
|
|