![]() |
OnAircraftCrashLanded trying to subtract flyable planes
I am having a bit of trouble getting this to subtract from the allowable flying planes on Crash land. It is usually easy when Actor is present. But how do I do it when player is null.
Below if a spitIIa crashlands then it should subtract 1 and the int allowedSpitIIas = 9; The rest of the code works but it does not subtract from the allowedSpitIIas Any idea? Code:
|
You dont need a player in this case, you get a AiAircraft via OnAircraftCrashLanded. So you don't need a Player. The most of your player code make no sense ;)
corrected: Code:
public override void OnAircraftCrashLanded(int missionNumber, string shortName, AiAircraft aircraft) |
Oh. Using PplayersInplane so much neater. thanks kodiak.
|
All times are GMT. The time now is 04:23 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.