OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Totibbs on 04 May 2003, 16:10:31
-
If a Shilka is destroyed, then a fire pitch must lite up.
how?
Its an easy question I suppose but I was out the scene for 8 months so I must get into it again.
I tried and tried for 2 days, but still no result.
If I know how this works, I hope my skills will come back verry soon... ;D
-
You need a trigger:
Condition: (not (canMove Shilka1) and (not (canFire Shilka1))
On activation: fire1 inflame true
Or if its to go in a script:
? (not (canMove Shilka1) and (not (canFire Shilka1)): fire1 inflame true
syntax not guaranteed. Welcome back!
-
or just :
Condition: not alive shilka
On activation: fire1 inflame true
-
Ace is of course correct. However, I've had problems with using not alive for vehicles - they can fool you by looking destroyed when they are not. More than once I've only made a mission finish by going around the battlefield and slugging one more LAW into every blackened tank.
Which is why I prefer my solution. You can of course add to it that the crew must be dead.
Another alternative is:-
Condition: getdammage Shilka1 >= 0.9
On activation: Shilka1 setdammage 1; fire1 inflame true
-
I personally have never experienced that problem. or even heard of it.
But now i realise that it does exist, Macguba's solution may be a safer option.
Especially if this mission is going to be used for anythung under 1.75