Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-02-2011, 12:55 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default Moving frontline and capturing airfields script sample

Here is a sample script from a member of the dev team.

Script does the following:
- reads frontline markers from the main mission file
- creates spawns at each airfield of the map depending on side
- creates 2 triggers at each frontline marker for ground group passthrough (for both sides)
- checks if enemy ground group gets to the trigger and
then based on trigger:
- changes marker side and as a result moving frontline
- destroys remaining enemy units near marker to prevent immediate recapture (not working sometimes)
- changes airfields side and planeset if they are left behind frontline
- changes score
- loads defending and attacking submissions.

To understand the principals of naming submissions please study this mission carefully: http://forum.1cpublishing.eu/showpos...&postcount=133
It uses an earlier version of this script.

Now everything a mission maker has to do is select several frontmarkers and create submissions spawning ground groups attacking these markers. The rest is done automatically.
To find out the number of a marker I plan to attack I place a camera unit on top of the frontline marker, save and then open the mission file in notepad to compare camera coordinates with markers coordinates. Devs mentioned that marker numbers will be shown in FMB in the future.

There is a known bug that prevents players to spawn at captured airfields. Devs will try to fix it by next patch so get your missions ready )

The script is attached as a .txt file.
Attached Files
File Type: txt main1_8.txt (18.1 KB, 169 views)

Last edited by Ataros; 06-02-2011 at 01:01 PM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.