OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Resources Beta Testing & Submission => Topic started by: LCD on 23 Jan 2008, 13:06:00

Title: LCD_spotlight.sqf (Delayed)
Post by: LCD on 23 Jan 2008, 13:06:00
dis script makes a spotlight move on a certain path searching for a target from an array... once it finds 1 da spotlight follows it till da target is dead or lost... da script also conects a sniper 2 da spotlight and has him fire on ny1 it follows...

activation :

[SpotlightName,ArrayOfTargets,SniperName,RangeOfArc,StartingDirection] execVM "LCD_spotlight.sqf"

for example da next line in da init of a spotlight :

[this,units group player,Snypir,230,0] execVM "LCD_spotlight.sqf"

will make a spotlight dat will move in da arc between north and southwest.... and when it finds a unit from da players group it will follow dat unit and have da sniper (or any soldier) called Snypir shoting on da unit :D

-----------------------------------------------------

Unluckily i dont have time 2 make an example mision... and i hate writing comments in da scruipt itsef :P but still feel free 2 use it or edit it or do watever :D

LCD OUT

Download updated with a working mission.
Title: Re: LCD_spotlight.sqf
Post by: Loyalguard on 23 Jan 2008, 13:12:45
Sounds interesting, I've downloaded it and will check it out.
Title: Re: LCD_spotlight.sqf
Post by: LCD on 29 Jan 2008, 13:18:45
i cant check now... will check da example on da 18th of feb (ill have ArmA acces 4 1 day :D) but did u man da light ?

LCD OUT
Title: Re: LCD_spotlight.sqf
Post by: LeeHunt on 29 Jan 2008, 16:59:45
i did try that, didn't work either. maybe you could scrape up a demo when you have time?
Title: Re: LCD_spotlight.sqf
Post by: hoz on 07 Feb 2009, 02:22:40
I updated the download to include a working mission to demonstrate the script. Its probably ready for review. LCD has been away hence the lack of reply.
Title: Re: LCD_spotlight.sqf (Ready)
Post by: Mandoble on 08 Feb 2009, 11:05:25
Script has no version, readme is unreadable or not understandable (well, I can understand it, but then it is unnaceptable). Script header has no usage section.