![]() |
AI-Aircraft classes for scripts
Quote:
This I found in another thread and embedded it into a script for pilot briefing, this way: Code:
Furthermore the message "OnAircraftTookOff" does not show up at all. Has anyone any idea? |
Do you include my code into the other?
OnAircraftTookOff works only correct if there is a Waypoint after the start. If you use Spawn-Areas and take off from there it doesn't work, it's not a feature its a bug. It worked correctly on first Version. |
Jepp, I included this into the submission script:
Code:
using System; But the briefing message for blue bomber, does only work for He111 so far, all other work, except Stuka, Ju88... |
Code:
if (aircraft.Type() == AircraftType.Bomber) //Nachricht fuer rote Spieler nach Start so your code is not correct. it should look like: Code:
if ((aircraft.Type() == AircraftType.Bomber) || (aircraft.Type() == AircraftType.DiveBomber)) |
I tried that also, doesn´t work.
I used the same lines as for "Takeoff" and to no avail. Just have a testing version of the script here in office, that are the lines you see here, so I cannot give you the actual code, but you can join our III./JG27TestServer, map with the script should be running now (if Steam didnt disconnect). ;) Also the || connection to Divebomber doesnt work for spawning. |
Heh hab auch bloß Kaffeepause und bin auf die dumme Idee gekommen ins 1C Forum zu schauen :rolleyes:
Ich schau mirs heute Abend mal an. |
:grin:
Ja, imer fleissig fürs BSP schaffen... ich muss auch mal wieder... :rolleyes: |
So figured it out, the Devs made Ju87 and Ju88 to "Bomber, DiveBomber". So the earlier version with DiveBomber only, don't work anymore.
New working code (Testversion): Code:
using System; |
Great! Thx.
Now the stukas and ju88 do not have to escort the ju87 anymore and are allowed to sink the shipping. :cool: |
All times are GMT. The time now is 10:36 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.