![]() |
|
|
|
#1
|
|||
|
|||
|
Quote:
(2) That's a great idea and very possible. |
|
#2
|
||||
|
||||
|
In the radio comms there is a command where you can call the tower for emergency. Could this be used as a trigger and have ambulance and firetruck rush out to the runway?
__________________
I7-3930K CPU w/ Corsair H60 liquid cooling. 16Gb Corsair Vengeance 1866mhz. Asus P9X79 Deluxe Motherboard. Asus GTX680 2Gb SLI Auzentech Home theater 3D Soundcard. Corsair HX850 Modular PSU. Win 7 x64 Ultimate TM Warthog HOTAS. TM Cougar MFD's. Saitek Flight Pro pedals. TrackIr 5. Samsung Syncmaster 2770FH LCD. |
|
#3
|
|||
|
|||
|
Unfortunately I can’t get the Naryv script to work. I copied the script in Notepad and saved it under ANSI as an cs mission. I did this several times but each time the scriptwindow in my test singlemission says: namespace cannot directly contain members such as fields or methods. CS- 0116.
I’m not familiar with C# but the scripts developed on this Forum are very interesting and absolutely impressive. I implement them in my single missions. Application of scripts is a must for the missionbuilder: it gives this beautiful COD-game an extra demension. Hopefully someone can help me with this Naryv script |
|
#4
|
|||
|
|||
|
I copied the script in Notepad and saved it under ANSI
You can use Notepad++ which is recommended by the RoF team so maybe Maddox coders are using it, and perhaps save documents in the Unicode Big Endian format, again I've seen the RoF devs recommend this format - because of the Cyrillic characters probably but anyway- Did you create a mission and then did you paste the copied text into the Scripts window? I say this because your error was '...cannot directly contain members' - you may be doing something else with the text than pasting it in Have the script-page Internet Explorer (or whatever browser) open, have the FMB running too - use Alt + Tab to switch between them to paste the text into the SCript tab edit window. Copy the script text by using the Ctrl + c trick, then in the FMB open the Scripts tab and do the Ctrl + v trick to paste the text in there. Select the block of text before hitting Ctrl + c to copy selected text to your Clipboard. Sorry if the grandmothers and eggs rule applies! Make a simple mission with just one plane ready to roll and set it to Player pilot and so on, takeoff and damage the plane, see if the vehicles turn up at your crashed plane Give me a PM shout if you're stuck and I'll send the mission on to you Ming |
|
#5
|
|||
|
|||
|
the Brits had them on the coast
Frog I have a possible Coastal Command sighting for Thor The rescue aircraft Walrus in there has the designation- Class Aircraft.WalrusMkI Doing the legwork, Igor the whip Ming |
|
#6
|
|||
|
|||
|
Thanks for the hard work and research on these scripts. Some really awesomesauce going on in this thread.
I was wondering if someone could help me though. I'm using naryv's script to dispatch ambulances etc in a MP dogfight. There's also AI planes that periodically spawn and then land. The problem is that everytime an AI plane lands, fire trucks etc will spawn and eventually lag the game out. Is there a way of limiting the spawn to just players? I used to do scripting for Arma 2 (sqf) and the following would be appropriate to filter out AI: PHP Code:
I've looked in the examples, but I can't 'get it' yet. I know you're busy guys so even a basic example/link would get me started. Thanks |
|
#7
|
|||
|
|||
|
Quote:
Code:
if (!CurTechCars.Contains(TmpCar))
CurTechCars.Add(TmpCar);
MissionLoading = false;
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) |
|
#8
|
|||
|
|||
|
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!
|
|
#9
|
|||
|
|||
|
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.... Last edited by Das Attorney; 09-16-2011 at 12:31 AM. |
|
#10
|
|||
|
|||
|
This gives me wood. I'm stunned that this thread hasn't got like zillions of replies as this is solely such a friggin kewl feature.
Is this what Luthier is talking about? |
![]() |
|
|