eventObjectSeen() - not reporting features?

For AI and campaign script related discussions and questions
Post Reply
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

eventObjectSeen() - not reporting features?

Post by aubergine »

Is eventObjectSeen() supposed to report features that are detected by my sensors? I would expect it to do so but it doesn't seem to - is this intended behaviour?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: eventObjectSeen() - not reporting features?

Post by Per »

Well, no. The problem is that the strange cluster system is used to throttle the frequency of seen events, and the cluster system does not support features. I could easily fix this by not throttling seen events, though. Not sure how many events that will fire off.
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: eventObjectSeen() - not reporting features?

Post by aubergine »

Even if the map is filled with features, they are finite and will be discovered gradually as droids move about at the start of the game so unthrottled passing of seen features to eventObjectSeen() should not cause any problems.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: eventObjectSeen() - not reporting features?

Post by Per »

Seen is not just called the first time something is seen, but every time something comes into view that was not seen the previous frame. So eg a line of VTOLs flying back and forth can trigger a lot of seen events. Not sure if that is a problem, though.
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: eventObjectSeen() - not reporting features?

Post by aubergine »

Shouldn't be a problem for features, especially as features will naturally get destroyed as game goes on, plus they are finite in number as defined on the map. IMHO it should be ok for unthrottled feature detection triggering eventObjectSeen() -- I imagine most scripts will ignore feature objects passed in to eventObjectSeen() anyway, however for scripts that do need to know when features are seen it will be highly beneficial to have them unthrottled.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Post Reply