I am having trouble with getting a trigger to fire once a vehicle is repaired by ai or player.
trigger blufor - not present
condition: getDammage rp1 <=0.70
I set damage in editor for vehicle to 20% health, then in a trigger and now in the init to make it global and taken it off the editor. The trigger fires on its own if it is set to 0.80, so I'm guessing the command works but when I repair the vehicle it does not fire the trigger.
In short I want the trigger to fire once a player/ai repairs the vehicle.
I have 2 triggers needed to fire, 1 is a skip way point the other is synced to a set state task module.
ThanksÂ
Edit
Solved
used debug for 1st time and solved it with: (rp1) gethitpointdamage "hitengine" <=0.7
getdammage and damage has no return
trigger blufor - not present
condition: getDammage rp1 <=0.70
I set damage in editor for vehicle to 20% health, then in a trigger and now in the init to make it global and taken it off the editor. The trigger fires on its own if it is set to 0.80, so I'm guessing the command works but when I repair the vehicle it does not fire the trigger.
In short I want the trigger to fire once a player/ai repairs the vehicle.
I have 2 triggers needed to fire, 1 is a skip way point the other is synced to a set state task module.
ThanksÂ
Edit
Solved
used debug for 1st time and solved it with: (rp1) gethitpointdamage "hitengine" <=0.7
getdammage and damage has no return