Jump to content
Sign in to follow this  
Smokki

Friendly to hostile problem

Recommended Posts

So... I am making a mission that ends for a cool fighting cutscene in hotel.

I have placed units in the hotel and want them to wait until order to shoot is given.

Problem is: Waypoints don't seem to work inside houses (units just walk away). So no triggering it that way.

Any suggestions?

Share this post


Link to post
Share on other sites

some buildings do work for waypoints!

place a waypoint over a building and if it is enterable another option in the waypoint will open-

positon in house:- position#1, etc smile_o.gif

Share this post


Link to post
Share on other sites

Yes I know that  smile_o.gif  

But I have placed those units in spesific places (in that building) and I don't want them to move or do anything else than target each others before command is given.

So if I put waypoint near unit (never fire...etc) and another waypoint (open fire...etc) and command that would activate that last waypoint it would be perfect.

But then unit decides that the first waypoint is somewhere in building (not in front of him as I would like it) and goes somewhere.

I need something that prevents them to kill each others before I say so.

Share this post


Link to post
Share on other sites

ah i got ya sorry misread the post! wow_o.gif

are you sycn-ing the command to the first or second waypoint?

Share this post


Link to post
Share on other sites

No problem  smile_o.gif

It's no difference if I sync it to first or second. They still won't stay put.

Share this post


Link to post
Share on other sites

Using waypoints is not maybe the best solution here. In fact there are many solutions which range from "better" to "more expedient". The solution I would use is simple : say all the units inside the hotel are OPFOR, you do something like this:

Trigger, a/b : covering the hotel and all the units you want to hold fire/not hold fire.

Activated by : OPFOR Present

Condition : Whatever the condition is needed to have them open fire.

On Activation : {_x setCombatMode "YELLOW"} foreach thisList

Ta-da : when the condition in the condition field is met, all the OPFOR in the list will be given the Open Fire command. As to how to make them hold fire in the first case, well, the simplest is to copy-paste: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this SetCombatMode "GREEN" into each of their init fields.

Should work. biggrin_o.gif

Regards,

Wolfrug

Share this post


Link to post
Share on other sites

Thanks smile_o.gif

On Activation : {_x setCombatMode "YELLOW"} foreach thisList

That is just what I needed.

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  

×