OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: OFP_f3d3 on 02 Feb 2011, 19:04:01

Title: detecting soldiers at a city
Post by: OFP_f3d3 on 02 Feb 2011, 19:04:01
ok,here´s the deal.
I´m making a new coop mission for arma but i have a big problem. A sniper will tell the spec-ops the position of the soldiers he detects when i activate a button that says "enemy detected", then he´ll say "Alpha, i detected a unit at ----Position-----" there position will be replaced by the position of the soldiers that the sniper saw when he activated the button "enemy detected"

DOES ANYONE KNOW HOW TO DO THIS???????? I´m new at ARMA but i know alot of ofp
Title: Re: detecting soldiers at a city
Post by: savedbygrace on 02 Feb 2011, 22:14:17
OFP code still works in Arma. Well, most of it anyways. So if you know an old way of doing what you want, chances are, you'll be able to duplicate it in the later titles.
Title: Re: detecting soldiers at a city
Post by: OFP_f3d3 on 02 Feb 2011, 22:35:16
Thats the problem, i don´t know how to do it in ofp or ARMA


EDIT:"Alpha, this is eagle, a --type of soldier--- is at ---position CD50 for example----" I think i wnaat something imposible
Title: Re: detecting soldiers at a city
Post by: Denz on 06 Feb 2011, 08:35:58
How about trying the nearTargets (http://www.ofpec.com/COMREF/index.php?action=details&id=663&game=All) command and then reveal it to the group of Spec Ops.

Might also want to have a look through the ED, Cheetah's GetRCoord (http://www.ofpec.com/ed_depot/index.php?action=details&id=359&game=ArmA) function might be useful.