Jump to content
Sign in to follow this  
WKK Gimbal

East and West not fighting?

Recommended Posts

Is it possible to make the player and team see enemy units as friends and vice verca? A trigger would be set up to trigger their hostility.

Hold fire or careless doesn't work, as it should include the players squad (and all other troops on the map).

tia!

Share this post


Link to post
Share on other sites

This might take some time for you but it would work at least like this:

choose an enemy unit and use this script in its init:

'unitname' setcaptive true

then do this to all the rest of the enemies smile.gif

now your team wont shoot these enemies

when you want your team to shoot, make a trigger where the condition is what ever you like and to the on action line write:

'unitname' setcaptive (not true); 'unit2name' setcaptive (not true); and so on

note of course that the unitnames are the same enemies...

now it should work!

Share this post


Link to post
Share on other sites

to speed up the scripting remeber that copy and paste works with cntrl C and cntrl V the same way like in windows

Share this post


Link to post
Share on other sites

No, that wont work. The Enemy will still fire back even if captives (if they have guns). Ofcourse, I could set them all to careless as well, but it seems kinda overwhelming.

Alternatively, I can choose the side of the resistance in the editor, but is there a way to swap this during gameplay?

Share this post


Link to post
Share on other sites

Don't know the exact commands, but can you do something like:

1. Remove all ammo ("removeallammo") at the start, or in the editor, slide the ammo bar to zero.

2. In the same trigger that you are going to use to initiate the hostilities, add back the ammo to the entities:

eg. this addmagazine "AK47"

Share this post


Link to post
Share on other sites

Thanks guys!

I'll try the ammo trick and see if it works with all variables.

In case anyone know if it's possible to trigger the Resistance's side (like set in the Editor) I'd love to know!

cheers

Share this post


Link to post
Share on other sites

Just set everyone as captives, both East And West, then East won't shoot at West and West wont shoot at east.

Then set them back when you want the shooting to start.

Share this post


Link to post
Share on other sites

Orrrrrrrrrr you could make the leaders of both east and west the same side then they wont fire at the other teams ... but theres two probs with that

1 over zealous players of your mission WILL notice the wrong leader playing for a side

2 no qiuk way of makin em fight against each other suddenly....

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  

×