OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: LLEWELLYN on 13 Jul 2004, 12:36:35

Title: Snipers & Spotters
Post by: LLEWELLYN on 13 Jul 2004, 12:36:35
Hi there all i am fairly new to ofp and i try my best to work out things as it goes however i need some help in resolving a Sniper and Spotter issue

1. How would one get the spotter to read off the distance to a target ?
2. Is there a script avaible that the sniper/spotter could use to work out the distance to a group of targets

It would be most appreciated if someone could help me
Title: Re:Snipers & Spotters
Post by: macguba on 13 Jul 2004, 13:25:14
I assuming the player is the sniper, right?

If you know what the target is you could do something like this - syntax not guaranteed.

loon2 sideChat format ["Distance to target %1m", loon2 distance target1]

Oh, and

Welcome to the forum!
Title: Re:Snipers & Spotters
Post by: LLEWELLYN on 13 Jul 2004, 23:45:46
Thanks i will try this

Title: Re:Snipers & Spotters
Post by: Kilo11 on 14 Jul 2004, 01:24:55
Or you could find the range yourself, wOOt! lol.  

-=Kilo=-
Title: Re:Snipers & Spotters
Post by: Dubieman on 14 Jul 2004, 03:17:12
Maybe you could mod the reg OFP range finder like when someone goes, "enemy soldier 50 5oclock". Or something...