Jump to content

Recommended Posts

Posted

35 = "S_EVENT_TRIGGER_ZONE"
Singletons refers to 35 = "S_EVENT_TRIGGER_ZONE".
I could't find anything for this one and even
that it is listed, it's absent from the Events types
section in hoggitworld.

Thank you

Democracy was already invented, while Scrat was eating oak fruits.

Posted (edited)

ED have a habit of adding events that aren't always immediately obvious how or what triggers them. Also a few are for WIP things. Not sure which this one is. 

Edited by Grimes

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted

Hello Grimes and thank you for your reply.

Sure, not all the abilities are in the open,
and i don't dissagree with this policy. But,
in a recent search that i did, i've found
more S_EVENT(s) than the official singletons
DCS: World Scripting Engine presents, in a
MOOSE code file called Event.lua. Seems that
i've reached the borders and i can't pass
through without no rellated documentation.

Thank you.

Democracy was already invented, while Scrat was eating oak fruits.

Posted

Was just trying to figure this out myself. I can’t get it to report it using a catch all (the example from Wiki) handler. Using that handler my unit in zone trigger in the mission editor quits. Removed the handler and the trigger works in ME, removed the ME trigger with just the trigger zone but the handler never reports it. Would love to use this in a script, and I think I got it working a while back in Moose after hours of tinkering but don’t remember if I did or just worked around it.  

Posted (edited)

Jwshaner

Off course it would be a GREAT benefit for scripting purposes without using/messing
with other methods. A direct-pure S_EVENT would be great, if it WILL BE available for us.
I did some tests:
1. Using it as all the other S_EVENT but it didn't replied.
2. Placed a normal zone with a trigger message while in it, no reply.
Seems that is "out of order" JUST for us. Not for others.
But while MOOSE is using it in it's Event.lua, once i will have some
time to follow the flow, i will try to analyze how MOOSE CAN use it,
and we CAN'T 😀
Thank you for your reply my friend.

PS:
Besides this with Zones, i am after the Draw Shapes,
that they also based on vec2 so to check INZONE units
using Unit's .p, within their mathematical 2D space area dimension.

Edited by ADHS

Democracy was already invented, while Scrat was eating oak fruits.

Posted

The moose code looks like they are creating a reference for it in the case of someone tries to use it within moose and moose knows what to do with it whenever that event may be called. Also they seem to have their own events that they combine with the list of S_EVENTs. Moose still relies on DCS to trigger that even however it occurs. Which would be the same using world.addEventHandler. 

 

As for the other events, I usually know about them but I am not always aware of when it gets merged to public builds. If I can get the event to occur it will also get its own page with details. If not it just gets added to the list of things that exist. ED's documentation itself is slightly out of date as 2 events have been added at somepoint. 

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted (edited)

Damn… I was relying on this to trigger every time a unit entered a trigger zone with an event object that contained all units in the zone (specifically for inside a moving zone…) for TWO large scripts I’m working on.

This just killed my two projects completely. 

Poo. 😞

@Grimes Please let us know as soon as you can if/when this will be active and how it works? Especially if it will work with client aircraft and AI aircraft. 
 

Thanks. 

Edited by Elphaba
Posted
On 10/12/2022 at 3:36 AM, Elphaba said:

@Grimes Please let us know as soon as you can if/when this will be active and how it works? Especially if it will work with client aircraft and AI aircraft. 

Fully agree.

  • Like 1

Democracy was already invented, while Scrat was eating oak fruits.

Posted
On 10/11/2022 at 10:36 AM, Elphaba said:

Please let us know as soon as you can if/when this will be active and how it works? Especially if it will work with client aircraft and AI aircraft. 

It has been asked about over 2 years ago with no answer. Other functions were asked about at the same time and did receive answers. Most likely it is dormant and waiting for something in the future.

Best to do it the way everyone else does it. 

1. Brute force usage of ((zone.x - unitPoint.x)^2 + (zone.z - unitPoint.z)^2)^0.5 < zone.radius to see if a point is within a circle. Maybe limiting the total units that are checked and how often it checks to be slightly more efficient with it. If the precise time a unit enters a zone is critical then its easily doable to schedule checks for certain units at different rates and do those closer to the zone more frequently. 

2. world.searchObjects for units to give an exact listing of the units within the zone on each check. 

  • Thanks 1

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted
6 hours ago, Grimes said:

Best to do it the way everyone else does it. 

Thank you for the info and
for the advise Grimes.

PS:
Just want ask you if you think that my
idea: to check within "poly Draw Shapes"
will work and bring a same or similar result.
Thank you.

Democracy was already invented, while Scrat was eating oak fruits.

Posted

Gotta use point in polygon checks. Something like the code in the mist function https://github.com/mrSkortch/MissionScriptingTools/blob/master/mist.lua#L3138

  • Thanks 1

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted
2 hours ago, Grimes said:

Gotta use point in polygon checks.

Thank you Grimes, thank you very much. 😃😃😃👍

Democracy was already invented, while Scrat was eating oak fruits.

  • 2 weeks later...
Posted

So, by luck, I've just detected this trigger event. I have a convoy (group) of AI vehicles that drove into a trigger zone and bang! This trigger event fired. Seems like it's only for ground units (damn shame). 

  • Like 1
Posted (edited)
29 minutes ago, Elphaba said:

I've just detected this trigger event.

Thats great.😃👍

Can you upload a draft mission or code to check/experiment with ?

Thank you.

Edited by ADHS

Democracy was already invented, while Scrat was eating oak fruits.

Posted (edited)
13 hours ago, ADHS said:

Thats great.😃👍

Can you upload a draft mission or code to check/experiment with ?

Thank you.

 

I can't as I'm using the detection in my own script in a massive mission I'm making. 

Just create a trigger zone on the ground and put it in the path of ground units. Give them way points to drive through it and then detect the event in your onEvent handler. 

It fires as each new unit (member of the convoy group) passes into it's bounds. I've yet to break down the event.initiator but I'm expecting it to be of UNIT type.

 

UPDATE;

It’s firing for every group, not unit. 

Edited by Elphaba
Update
  • Thanks 1
Posted
15 minutes ago, Elphaba said:

I can't

It's OK. Thank you, i will try it. 😃👍

  • Like 1

Democracy was already invented, while Scrat was eating oak fruits.

Posted
10 hours ago, Elphaba said:

I can't as I'm using the detection in my own script in a massive mission I'm making. 

Just create a trigger zone on the ground and put it in the path of ground units. Give them way points to drive through it and then detect the event in your onEvent handler. 

It fires as each new unit (member of the convoy group) passes into it's bounds. I've yet to break down the event.initiator but I'm expecting it to be of UNIT type.

 

Then upload a mission with just that and the event occurring because I can't reproduce it. 

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted (edited)
2 hours ago, Grimes said:

Then upload a mission with just that and the event occurring because I can't reproduce it. 

Please?! Do you even realise how rude that sounded?

I'm working on something else with a deadline right now. 

Edited by Elphaba
Posted (edited)
On 10/26/2022 at 1:45 PM, ADHS said:

It's OK. Thank you, i will try it. 😃👍

I don't know if this has something to do with it, but the event is only triggering when groups are entering a Trigger zone INSIDE the Ramat David airbase. I have a trigger zone somewhere else outside the base and it's not firing there... Hmmm

 

Also the zones are quads not circular.

Edited by Elphaba
Posted

Would you kindly provide a test mission in your own time? The time is not important, only life. 

If it only works within airbases then I think that increases the likelihood that it was added by ED for something unreleased or for testing purposes. 

 

  • Like 3

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • 11 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...