number3 Posted November 4, 2013 Posted November 4, 2013 Has anyone used the S_EVENT_BASE_CAPTURED event? If so, can someone provide an example of what must take place, in the mission, in order to trigger this event (script example would also be nice too!)? Also, a simulator event has the following structure (not for all events) Event = { id = enum world.event, time = Time, initiator = Unit, target = Unit, place = Unit, subPlace = enum world.BirthPlace, weapon = Weapon } table represents a simulator event. Not all the parameters are valid for any event. Is there an area in the code where I can see what the returned structure of the Event is for a event fired? Thanks 314-я смешанная авиационная дивизия 314th Mixed Aviation Division: The "Fighting Lemmings"- Forums: http://314thsquadron.enjin.com/ - ED Forum Group: http://forums.eagle.ru/group.php?groupid=119
Grimes Posted November 4, 2013 Posted November 4, 2013 Not sure exactly what the event table for it looks like, but you could use a table show or serialize function to get an idea of the contents of a table. MIST has such functions with mist.utils.tableShow() http://forums.eagle.ru/showthread.php?t=98616 The event condition for triggers are teh same ones as the scripting engine, so you can easily test out when an event occurs by simply using triggers. But generally speaking the base captured event occurs when an airbase or FARP switch coalitions via the presence of ground forces. For example if you have a blue airbase with no friendly forces within a specific distance, 500 or 1000m for FARPS and up to 2.5 km for airbases, and any enemy ground unit gets within that radius then the base will be captured. FARPS and airbases do have a default coalition which they belong to and if a base is captured and then the enemy units in the zone around the base are killed, then the base should return to its default coalition. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
number3 Posted November 5, 2013 Author Posted November 5, 2013 Thanks for the reply Grimes. 314-я смешанная авиационная дивизия 314th Mixed Aviation Division: The "Fighting Lemmings"- Forums: http://314thsquadron.enjin.com/ - ED Forum Group: http://forums.eagle.ru/group.php?groupid=119
Recommended Posts