OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Olphy on 21 May 2004, 13:11:40

Title: Police.
Post by: Olphy on 21 May 2004, 13:11:40
Hi.

I am making a mission where there are quite a few patroling police cars on the street. And I also have a resistance soldier as player as well. But what I want to happen is to have a trigger which follows a certain unit around (in this case a Police Car) so that if they detect the player in the area then it is mission failed.

Any ideas as to how I could get a trigger to act in this way.

Cheers.
Title: Re:Police.
Post by: Kaliyuga on 21 May 2004, 19:03:03
why not use the knowsabout command in a trigger and then it wouldn't have to move at all...

condition:   pig knowsabout player > 1
activation: forceend

Title: Re:Police.
Post by: Olphy on 21 May 2004, 20:42:00
O.K Then I'll give it a shot.

Cheers.
Title: Re:Police.
Post by: macguba on 21 May 2004, 22:42:35
Good idea Kali ..... "1" may not be the best number for the exact effect you want:  try playing around with it a little.