OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dbl-Dutch on 22 Jan 2003, 15:53:34

Title: EDITING, Vehicle Lights
Post by: Dbl-Dutch on 22 Jan 2003, 15:53:34
Well here we go again :P, I have Patria add-on, in a map I am creating.  The problem I am encountering is as follows ???:

- Time on the map "dawn" which means its still dark.
- My vehicle lights are on, I swicht them off whilst driving; no problem.
- I get out of the vehicle the lights go back on ???.
- its not just the vehicle I did put a gun position in a Bunker and his light were on?
- The island I am using "SARUGAO".

What's going on, I am confused :hmm:?
:help: can some one come up with a solution.

Thanks
Dutch
Title: Re:EDITING, Vehicle Lights
Post by: Bronski on 22 Jan 2003, 16:30:53
Last time i heard i don't think you can get around the gun positions light being on.

Is there anyone else in the Jeep?  
Title: Re:EDITING, Vehicle Lights
Post by: Artak on 22 Jan 2003, 17:27:14
Hi Bronski

Well the jeep thingy sounds really weird if there's not anyone left in it when you get out.

There might be a way to disable machinegun lights though I never got it to work.

What you do is 'hack' the mg addon and disable some class or something like that from there.. can't remember anymore..

But anyways, doing that means that you have just created a whole new addon and need to share it with others who play your mission.

If you don't want the enemy to see the mg headlights untill it's too late you can make a lil script for that.


#distance
~5
?(enemy distance mg) < 100: goto "movein"
goto "distance"

#movein
gunner moveingunner mg
gunner setbehaviour "combat"   <-- optional
gunner setcombatmode "red"    <-- optional
gunner dowatch enemy    <-- optional

exit


and that's about it. what that does is that it makes the gunner wait untill the enemy is less than 100 meters away from it and then makes him jump on his mg, prepare for combat, engage at will and watch the direction off the enemy.

..or at least that's what it should do  ;D
Title: Re:EDITING, Vehicle Lights
Post by: Dbl-Dutch on 22 Jan 2003, 17:42:05
Thanks lads