OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: CptBravo on 09 Jan 2004, 00:07:14

Title: Markers Makers Makers!
Post by: CptBravo on 09 Jan 2004, 00:07:14
Hi everyone,

I am making an MP mission, and each player will fight over control over several towns. WHat I need to learn is how to change the color of a marker once that objective has been achieved? For example there is atrig over town A colord Red and once cleared from enemy units I want it to turn Green.

I have searched forumes for any hints but no luck.

Your help will be grrrrrrrrrrreatly appreciated!


Thanks.
Title: Re:Markers Makers Makers!
Post by: Artak on 09 Jan 2004, 07:24:51
Several ways you can do this. I'd suggest a repeatedly activated trigger where activation is by the enemy side. In the 'on activation field' I'd put "markername" setmarkercolor "colorred" and in the 'deactivation field' I'd put "markername" setmarkercolor "colorgreen".

This way if the enemy should recapture the town, the marker would turn to red again, and once cleared, green again.
Title: Re:Markers Makers Makers!
Post by: CptBravo on 09 Jan 2004, 18:39:13
Thank you very very much! You're the best!!
That is exactly what I was looking for! :)