OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: royalman51 on 29 Jun 2005, 13:37:38

Title: captive
Post by: royalman51 on 29 Jun 2005, 13:37:38
I'm trying to make a mission, where i have to capture an enemy offcer driving in a UAZ. When the driver of the UAZ is killed the officer should join my squad. I made a trigger with in the Condition field: "not alive driver" and in the On Act field: "officer join player". But the trigger doen't work. I am getting a error massage when i shot the driver. I also set the officer to a captive. How can i make the officer join my squad?
Title: Re:captive
Post by: CopyrightPhilly on 29 Jun 2005, 13:42:27
condition:
!alive (driver uazname)
Title: Re:captive
Post by: THobson on 29 Jun 2005, 14:54:34
The join instruction needs some [] as well as follows:

[officer] join player
Title: Re:captive
Post by: Colossos on 01 Jul 2005, 14:52:38
My  post was so embarassing  ::) , I have got to stop drinking!!
Title: Re:captive
Post by: big_ears on 01 Jul 2005, 15:41:45
I guess you mean it right but the point is that the officer has to join him when the driver is NOT alive.
so:
! not(alive driver)     in the condition field
Isn't "!" exactly the same as writing "not" ???

Therefore if you put "! not(alive driver)" then it would be a double negative and return true when the driver is actually alive??