Jump to content
Sign in to follow this  
Wastelander

Trigger - Help

Recommended Posts

Hi,

New to edititing... :j: :) :confused:

Need to add trigger (I think) so when the good guys take over area/objective it produces a Green Circle or something similar so can see that area is clear on the map view.

Need step by step if possible.

I have downloaded several doccos and printed Mr Murry's guide.

I must be missing something. :(

Thanks - In anticipation. :yay:

Share this post


Link to post
Share on other sites

The actual code for making a marker is simple:

_zone = createMarker [_zoneName, getPos _zoneTrigger];

_zone setMarkerShape "ELLIPSE";

_zone setMarkerBrush "SOLID";

_zone setMarkerSize [_zoneRadius,_zoneRadius];

_zone setMarkerColor "ColorGreen";

However if you need the script to make it happen its a whole different beast. You'd have to specify more in order for anyone to help you. If its just a matter of checking how many enemies are inside the radius of a trigger or variable base execution, it should be fairly easy. If you want a looping capture based on presence and superiority with two teams, its much more code.

Or you can try the PvP script templates, should be just to search the forums. If you're new to editing, not doing any editing can save you some headache ;)

Share this post


Link to post
Share on other sites

The simplest way to do it would probably be:

1. Insert a marker named Area, color red and ellipse with the size you like.

2. Create a trigger same size as marker with the properties OPFOR, not present, once. In it's "On Act:" field put this:

"Area" setMarkerColor "ColorGreen";

Now when you start mission the circle is red and will turn green when opfor is not present in trigger area.

Share this post


Link to post
Share on other sites
The simplest way to do it would probably be:

1. Insert a marker named Area, color red and ellipse with the size you like.

2. Create a trigger same size as marker with the properties OPFOR, not present, once. In it's "On Act:" field put this:

"Area" setMarkerColor "ColorGreen";

Now when you start mission the circle is red and will turn green when opfor is not present in trigger area.

That should do it....

Tanks Heaps...

Keeping it simple and learning as I go...

It's all good....

Would be nice if the flamin AI were better pilots... I have given up on trying to keep then flyin around.... :-(

---------- Post added at 12:38 PM ---------- Previous post was at 12:34 PM ----------

Next is the Revive Script....

Share this post


Link to post
Share on other sites

Now workin on the briefing.sqf to add tasks and stuff...

That's if anyone reads the brief?

Share this post


Link to post
Share on other sites

Most good...

Now have the zones changing from red to green - Excellent...

Now to add sound when it does this?

I have tried the actions but no joy?

I can get the TEXT to mes up with my entered text but...

Adding a universal sound would be GREAT!!

Share this post


Link to post
Share on other sites

Adding sound, either using the ones built in or custom bits, is not hard. But you'll need to do a little research (in forums here or in Armaholic.com) to use custom ones. The built in stuff can be accessed through Effects in triggers.

Share this post


Link to post
Share on other sites
The actual code for making a marker is simple:

_zone = createMarker [_zoneName, getPos _zoneTrigger];

_zone setMarkerShape "ELLIPSE";

_zone setMarkerBrush "SOLID";

_zone setMarkerSize [_zoneRadius,_zoneRadius];

_zone setMarkerColor "ColorGreen";

However if you need the script to make it happen its a whole different beast. You'd have to specify more in order for anyone to help you. If its just a matter of checking how many enemies are inside the radius of a trigger or variable base execution, it should be fairly easy. If you want a looping capture based on presence and superiority with two teams, its much more code.

Or you can try the PvP script templates, should be just to search the forums. If you're new to editing, not doing any editing can save you some headache

How would you do the scripting for that?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×