OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: schuler on 11 Sep 2006, 04:03:40

Title: cutsenes to run after AI truck destroyed
Post by: schuler on 11 Sep 2006, 04:03:40
hello , how do i get a cutsene to run after a etruck1 is destroyed, the truck is empty. i cant seem to get the trigger happening. iam confused because if i had a live unit in it the trigger would be esley made as east not present and  a trigger would work, id like it mabye be a snyc to tigger, what am i doing wrong
Title: Re: cutsenes to run after AI truck destroyed
Post by: XCess on 11 Sep 2006, 05:51:22
In the onActivation of the trigger replace whatever's there with either

!(alive etruck1)

or

(getdammage etruck1) >= 1

Remember, not present triggers only work for AI units, not empty vehicles and other objects.
Title: Re: cutsenes to run after AI truck destroyed
Post by: schuler on 11 Sep 2006, 12:43:44
i tyed the cutseen into a live AI and just added it to the live AI trigger. so when the live AI is not present i set it to,
etruck1 dammage 1 ; [] exec "cut1.sqs" ya know its funny sometimes i feel like iam tricking the game to work for me.
iam going to try what youve got !(alive etruck1) with a live unit aswell to help with knowleadge for scripting a bit
    thanks XCess! cheers
Quote
Remember, not present triggers only work for AI units, not empty vehicles and other objects.
i was wondering why it didnt work!  :dunno: lol