Home   Help Search Login Register  

Author Topic: Can't find how to change sides in the FAQ, etc  (Read 813 times)

0 Members and 1 Guest are viewing this topic.

Corben Dallas

  • Guest
Can't find how to change sides in the FAQ, etc
« on: 13 Jun 2005, 13:35:42 »
I have most of my enemy set as Resistance units, but a couple of East units arriving in a UAZ with a couple of Resistance units. If I shoot some Resistence units after the East have left the car, the East lot just stand around - like loons tend to. How can I...

a) Make the East guys become Resistance (won't affect the game)

b) Make everyone within a certain distance aware once someone's been shot near them?

The AI seems a little duff in these cases, and I can't work out how to script either of these after lots of searching and head bashing. Tried modifying a great sounding 'enemy alert' script off OFPEC, but it fell apart after I chopped it up a bit.  :-[
« Last Edit: 13 Jun 2005, 13:36:41 by Corben Dallas »

qqqqqq

  • Guest
Re:Can't find how to change sides in the FAQ, etc
« Reply #1 on: 13 Jun 2005, 14:28:46 »
a)  Group the East loons under a Res group leader, whose probability of presence slider is 0.

b)  Trigger

switch
not alive loon1 or not alive loon2

Synchro it with waypoints to put the groups into aware search and destroy or guard waypoints, or new move wayopints, whatever.

Corben Dallas

  • Guest
Re:Can't find how to change sides in the FAQ, etc
« Reply #2 on: 13 Jun 2005, 14:48:38 »
Hmmm... will have a crack at that now.  Thanks.

Edit:

Is it possible to make a simple script which will alert enemies around an enemy who's shot by a slienced weapon (bagel with 8.4 toughness rating)   :P
« Last Edit: 13 Jun 2005, 15:00:56 by Corben Dallas »

Corben Dallas

  • Guest
Re:Can't find how to change sides in the FAQ, etc
« Reply #3 on: 13 Jun 2005, 15:50:00 »
What does the 'probability of presence' do in this case?  I'd have thought it would make the unit appear or not, depending upon the setting?  If that's so, then setting it to zero means the leading unit won't actually appear?

Time for a drink...   :-\

qqqqqq

  • Guest
Re:Can't find how to change sides in the FAQ, etc
« Reply #4 on: 13 Jun 2005, 15:57:29 »
Correct.    But units in the group will still be on the Side of the non-appearing leader.

As for the other thing, why doesn't my solution work for you?   Assuming it doesn't, we need a lot more detail on what you're trying to do.   What happens if it's a non-silenced weapon?   What if it's a grenade?   Is this applicable to only one unit?  Or all?   And does the unit move around?  And is it always the same friendlies nearby or could they change?   Is it killed or just wounded?

All scripts are simple.  Even a computer can understand them.

Offline 456820

  • Contributing Member
  • **
Re:Can't find how to change sides in the FAQ, etc
« Reply #5 on: 13 Jun 2005, 16:04:20 »
tomake everyone aware once someone has been shot near them is easy there is a scipt in the ed depot by general baron and its called ai info share that should fix your problem

Corben Dallas

  • Guest
Re:Can't find how to change sides in the FAQ, etc
« Reply #6 on: 13 Jun 2005, 16:06:48 »
What I did was set one of the guys in the UAZ to Resistance and a high rank, then linked the other East guys to him and the UAZ.  (Sorry if I don't explain in your terms, but I've only been at this a week or so).

I still have a lot of problems understanding how triggers and scripts go together.  I know a trigger can fire a script, but the complexities are still foggy to me.  As with anyone, it'll all become suddenly clear one day soon.  For now though, what I'm after, in the simplest way (hah!) is:

a) When I shoot someone, East or Resistance, I want others within hearing distance around them (ie., ricochets, screams, etc) to go "Holy f**k!" and start shooting back.

b) Make everyone do the above, regardless of whether they're East or Resistance (since in my mission, they're working together).

I think I'll take another (long, long...) look at the enhanced AI script I mentioned, but when I tried it earlier today it said that AddEventHandler was an error.  Is that not available in 1.46, or did my hacking around destroy the script do you think?


Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Can't find how to change sides in the FAQ, etc
« Reply #7 on: 13 Jun 2005, 16:21:34 »
right. as with so many things in flashpoint, there's more than one way of doing this, with varying levels of difficulty. i would suggest (for now) doing it the simple way.

this would involve working under the assumption that anyone around the area will hear something, even if you use silenced weapons - i'll come to that in a moment - and use a simple switch trigger to put everyone onto alert (you can synchronise more than one waypoint to a single switch trigger) once the loon in question is offed.

if you want to give the impression that the enemy is reacting to a loud weapon, you need to look at the 'fired' event handler. this is taking things a step further - here's an example from a mission of mine:

Code: [Select]
player addEventHandler ["fired",{if ("_this select 1 == _x" count ["GlockS","Bizon","HK","Uzi"] == 0) then {loud = true}}]

(thanks to sui for the code ;) )

what the above does is, each time the player fires a weapon, if it isn't one of the silenced weapons, it will set the 'loud' variable to true. then all you need to do is incorporate this into your switch trigger condition, so that if loud is true and one of the others is dead, the trigger activates. if a silenced weapon is used, it won't.

the next step up is to use an infoshare script as suggested above, but that's going even deeper into scripting territory, which - with all due respect - i think you should leave for the time being until you have the hang of the basics. ;)

Corben Dallas

  • Guest
Re:Can't find how to change sides in the FAQ, etc
« Reply #8 on: 13 Jun 2005, 17:57:51 »
Good stuff bedges.  I'll have another look at the 'intelligent AI' script and see if it's workable without too much thinking as a noob.

Incidentally, the Uzi should perhaps be removed from your silent script (no idea about the Glock).  A couple of years ago someone was Uzi'd to death in a car at the end of my street, perhaps 70 yards away, and I thought it was someone setting off fire-crackers at the wrong time of year (was close to Guy Fawkes night, UK).  I sure heard that one.  Sadly, he probably didn't.

PS. I find life more like this:

The butterfly
Resting upon the temple bell,
B'f*cking BOING!!!!!
« Last Edit: 13 Jun 2005, 18:30:21 by Corben Dallas »

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Can't find how to change sides in the FAQ, etc
« Reply #9 on: 13 Jun 2005, 18:51:49 »
mmm. the world is crazy sometimes.

as for the uzi, the reason it's in the list is that, in flashpoint at least, it has a silencer on it. as has the glock - although, if you're using 1.46 (?) perhaps you don't have access to those...

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Can't find how to change sides in the FAQ, etc
« Reply #10 on: 13 Jun 2005, 19:02:56 »
Eventhandlers are not available in 1.46 either methinks.


Planck
I know a little about a lot, and a lot about a little.