Jump to content
Sign in to follow this  
Rafalski

targetsQuery ? explanation ?

Recommended Posts

"Find all targets known to sender matching given query."

but how to use it ?

targetsQuery

Syntax:

speaker targetsQuery [receiver,side,unit,place,time]

Parameters:

speaker: Object -

[receiver,side,unit,place,time]: Array -

Return Value:

Array

speaker = sender

but what are side, receiver, unit, place, time?

Share this post


Link to post
Share on other sites

thinking out loud:

thinking it might be similar to reveal.

speaker targetsQuery [receiver,side,unit,place,time]

who_recieves_info targetsQuery [who_gives_info,side_targets,unit,getPos who_gives_info,time]

what the unit and the time should be im not sure, maybe its for how long who_gives_info have known about targets.

unit is maybe class, or cfgVehicle fex "Tank" , "land", "Plane" etc..

place is maybe radius, fex 200 range from who_gives_info etc

Only speculations, a few tests in editor with hint format would reveal more ;)

Share this post


Link to post
Share on other sites

Look again at the example provided there.

Share this post


Link to post
Share on other sites
_candidates = _this targetsQuery [_from,_enemySide,"","",""];//ca\characters\scripts\reactCore_Full.fsm

_unit = soldier1 (sender)

but _from ?, _enemySide ? _candidates (there is array of arrays ?) and rest /.... <- this is my questions, because I'm can not deduct from what is in the wiki ... meaning of these parameters.

Sending me back where I just coming from is not helping at all.

PvPscene if you know meaning of these parameters could you describe them ?

Edited by Rafalski

Share this post


Link to post
Share on other sites

Why not look at the file?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×