OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: marcus3 on 16 Jan 2005, 12:44:14

Title: when you have a gun the AI says something
Post by: marcus3 on 16 Jan 2005, 12:44:14
ok. now. in the mission you can get a HK but you dont have to. i want it where when you come back from the mission and talk to your leader he says."nice gun bla bla bla etc". the way i did it is with game logic things.
i made 2 triggers and one had in the con "guy hasweapon "HK"" and in the other i dont know what to put something like when guy gets close to leader it pops up.  i snc the triggers with the game logic waypoint "AND" that was out side my 3rd trigger so that when both are true it makes the 3d trigger (that is the end mission one) work. but i dont know what to put in the second one  but i also need it where when you dont have the HK and just your AK47 he just says "good job". so what do i do?
Title: Re:when you have a gun the AI says something
Post by: nominesine on 16 Jan 2005, 12:49:21
If you want a trigger to fire when guy gets close enough to officer write:

guy distance officer <*

* = The number of meters that you consider to be close.
Title: Re:when you have a gun the AI says something
Post by: marcus3 on 16 Jan 2005, 13:18:48
it works thanks a lot.
i think what i did wrong is that when i put the
guy distance officer <3
my < was going > way can you tell my what makes them ( dif rent. ha ha)
 o and i got it to work when i dont have the HK as well.