The aimedAtTarget requires the following: _x select 0 would be īy doing this you can use the return values for other commands such as aimedAtTarget. _x select 1 would be "SoldierEB" the Objects classname. _x select 0 would be the objects Position. The array in between the first ** (I added the ** to split the nested arrays) will be first selected array on the first run of the forEach loop followed by the next (There maybe alot more depending on targets in distance), each of the nested arrays hold all the info on a particular object which you can pull using the select command. Using the Wiki example for the return value nearTargets: One of the best pieces of advice I could give is to always read what the return value of a command is. Looking at the code I seen the forEach _possTar, then I looked at what information _possTar holds, that being nested Arrays containing info on Targets within a _maxDistance (which will be defined further up in the script) from the _unit. Was it just experience that made you look there or was something in the code told you to check nearTargets? Цитата допису Justbeast11:Ahh, thank you so much! I was looking in the wrong place, I was looking at the aimedAtTarget command for the array, but I see what you're talking about with the nearTargets.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |