OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SafetyCatch on 20 Sep 2003, 15:58:45

Title: Searchlights and stuff
Post by: SafetyCatch on 20 Sep 2003, 15:58:45
Hi  :D
I'm making a hostage rescue mission  ;D
I was wondering is there any way i can simulate a search light that can be scanning the town's buildings and roads and stuff????
Also, if anyone knows where i can get a quiet police siren sound thats not too annoying that wud b very helpful
Thanks  :)
Safety
Title: Re:Searchlights and stuff
Post by: Splintercell on 20 Sep 2003, 17:07:31
There already a thread for this. and no none are available at time
Title: Re:Searchlights and stuff
Post by: Drozdov on 20 Sep 2003, 20:41:42
Yeh it's my thread  ;)
Title: Re:Searchlights and stuff
Post by: SickSidewinder on 20 Sep 2003, 23:21:42
for the searchlight, i dont know.  as for a siren sound, if u mean an alarm like the one in game, u can find a clip of it online, then look at teh soudn tutorials as how to put it in your mission
Title: Re:Searchlights and stuff
Post by: Sui on 21 Sep 2003, 03:42:52
See if you can modify this to suit your needs ;)
Title: Re:Searchlights and stuff
Post by: SafetyCatch on 27 Sep 2003, 13:07:27
wow thanks sui :)
Title: Re:Searchlights and stuff
Post by: Harkonin on 27 Sep 2003, 18:53:39
use a drop effect with it it looks even better.

http://67.81.26.4:3000/vetserver/screens/spot.JPG
Title: Re:Searchlights and stuff
Post by: General Barron on 28 Sep 2003, 20:58:54
Here are two siren sounds I'm using in a mission I'm working on. I have them looped in a script, so that the sound files don't have to be very big. I've included a simple script to do just that. You'll have to config the sounds in description.ext to work it, though. Nice thing about the script is that you give it a vehicle to play the sound from, so the farther away the vehicle is, the quieter the siren is.
Title: Re:Searchlights and stuff
Post by: Blanco on 01 Oct 2003, 21:59:55
use a drop effect with it it looks even better.

http://67.81.26.4:3000/vetserver/screens/spot.JPG

wow, that looks awesome!  :o

Where can I get it?

Title: Re:Searchlights and stuff
Post by: Harkonin on 02 Oct 2003, 21:00:05
Here you go -

_object = _this select 0
logic2 setdammage 0

; colours

_left = [1,0.2,0.05,1]
_left2 = [0.4,0.4,0.05,1]
;_left2 = [0,0.7,0.9,1]
#loop
~0.01
drop ["obrysove svetlo", "", "Billboard", 1, 0.1, [0,0.5,0], [0, 1, 0], 1, 0.9, 1.1, 1, [1, 1],[_left,_left2],[0],0,0,"","",_object]
? (Not(Alive _object)): exit
goto "loop"
Title: Re:Searchlights and stuff
Post by: Blanco on 03 Oct 2003, 19:44:24
thx, it works.

But why that logic2 setdammage 0 line?

Why do I need a gamelogic? (I guess) ...cos it works without it?!