![]() |
Quote:
http://img716.imageshack.us/img716/9...pboard03ra.jpg After a ''perfect'' wheels up landing they send me winch, fuel, ammo and bombs (spend previous load before landing)! :) Ambulance is not need. :) Sokol1 |
Quote:
Code:
if (!CurTechCars.Contains(TmpCar)) Another way to do this would be an 'if (CurTechCars.count < MAX_CARS) in before the CurTechCars.Add(TmpCar) Hopefully that's a few clues, as I'm away from a computer (typing this on a pad) |
Mington, thanks for your detailed advice, and you too Sokol1 for your response. No grandmothers and eggs rule applied here, Ming. On the contrary I’m very happy with your suggestions, pleased as Punch as people say. Put them already into practice and all went very well now! What a terrific script this Naryv script, and what a fantastic game this Cliffs of Dover!
|
Quote:
|
Quote:
|
Quote:
BTW can you make the new aircraft to spawn at exactly the same position heading the same direction as the old one? If yes, the change would be hardly noticeable for a player. |
Quote:
Anyone else dealt with a rotation angle? |
I demand fully-automated working traffic lights in London town and fleets of Routemasters. Civilization: Cliffs of Dover
Next Week's Demand Or The Kitten Gets It: a flocking algorithm for Heinkels Ming :) |
Quote:
I managed to modify the script to only work on player planes by adding a condition to ignore AI planes - using !isAiControlledPlane(aircraft) It's working for player planes only now quite nicely. :) I'd like to have a go at adding in some code to rearm/refuel/repair. Off the top of my head, it could probably work by automatically setting fuel etc to 1 when the relevant truck completes it's last waypoint. Or when it completes it's last waypoint, then it activates the Mission menu for the player to select the appropriate emergency service. I'm not sure if these solutions would be possible as I don't know many of the scripting commands. How can you see the API? Do you have to run kegetys -dump command or is there a different way to look at the API (in the COD folder somewhere maybe)? EDIT: I suspect it's in the maddox.dll.... |
The API is written using Microsoft .Net libraries, so you can examine them in things like Visual Studio (there is a free edition called Express). The 'object browser' shows the signatures and symbols of the files like game.world.dll that you reference in your project.
|
All times are GMT. The time now is 06:00 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.