OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tobruk on 15 Jul 2003, 03:12:36
-
1. How do I get the lights to go out in a town at night? I did not put in any streetlights myself, they are part of the basic town--Saint Louis, Malden map and so I can't turn them off in the init code.
2. I have the player travel to a squad and I would like him to join the group. I have given the player a join way point, but that didn't work.
Any ideas? ::)
Actually I lied, I have one more question.
Does anyone know if there is a decent search light addon? Ideally one that would work automatically.
-
1) Use the object ID # to setdammage the streetlamps in said town..
perhaps you could have a camcreated explosion at the same time to mask the noise that setdammage would cause to occur... say that another squad just took out the power grid or something
2) Try synching that trigger with a join and lead waypoint for the squad that he's joining up with ;)
3) nope ... sorry ;D
-
1. There is a street light tutorial in the editors depot and it comes with an example mission
2. Not sure about that.
3. There used to be a search-light script here (I think)
but I couldn't find it. I do have it at home (I'm at work now)
I'll post it here tomorrow.
corno
-
Okay solved questions 1 & 2 :D, any ideas on search addons?
-
Don't destroy the light, just type this in init.sqs or a trigger - object ID switchLight "Off".
Simple as that. ;)
-
What I ended up doing is setting a trigger that encompassed the town and then used (object ID #) switchlight "off". This got the town very dark. Now I need a random searchlight for ambience.
-
Now I need a random searchlight for ambience
If all you are after is ambience, then how about some flares randomly fired? This would light the place up and you could adjust the frequency for more or less illumination time.
Another idea could be to use an MG with ammo set to zero (if you just want the light) and have it pan back and forth via dotarget some GLs, object IDs or markers. At last that useless light on the MG may be put to good use! ;)
Wadmann
-
Darn it Tobruk...
I forgot :P. The searchlight is coming. Just hold on. I was so busy thinking about the "endmission = true" thing that I completly
forgot about the searchlight :'(
Dude, I swear on the holy bible that I'll either post it or send it to you in EXACTLY FIVE HOURS ;D
Sorry :-[
corno.
ps, I havn't used it in some time so I can't be sure if it works with v190+
-
Hey no worries Cornholio, I just figured if one existed others might know about it. I did a search on this site but came up empty.
Thanks for the suggestion Wadman, but I am using a ww2 mod so I don't it would apply in this case. I may use trip flares, but what I would love is to see anti aircraft search light scanning the skys in the back ground.
-
Hmmm, I missed the part about the searchlights being anti-aircraft.
But the attached searchlight script from SUI is :toocool:
Maybe you can make it work for aircraft
(I think the light is a bit weak for what you need though)
-
hold it :P
@ 2
dont use WPs never - specialy not 4 player ;) - vetern players cant c WPs :-X :noo:
just make triger around da squad nd group it 2 da player nd put
[playerUnitname] join leadername
in da condition
:cheers:
LCD OUT