Hello,
I`m having trouble giving a unit an expiration timer. It was possible in war3 with a trigger action called Unit - Add Expiration Timer, but I can`t find an equivalent in sc2.
I want it possible to add variable expiration timer to units, not sure if this is possible by creating behaviours in data editor. I`m hoping there is a way to do it from triggers, maybe I just didn`t find it?
Yes, they are now behaviors.
Look at behaviors like "MULE - Timed Life" or "Hallucination Timed Life", dublicate one of them, set the right time and then you can just add the behavior to a unit via triggers.
I haven't tested this so Im not sure if it will work but...
I know you can modify ability cool down times from a trigger. Perhaps you can make a behavior that causes the unit to die but only activate it when the ability is used. Set the ability cool down time to your variable and start each unit with the cool down already activated. Set the unit to use it as soon as it is available and it should function the same as an expiration timer that your can modify with trigger variable.
edit: there may be an easier way to do this, just what I thought of on the spot
Hello, I`m having trouble giving a unit an expiration timer. It was possible in war3 with a trigger action called Unit - Add Expiration Timer, but I can`t find an equivalent in sc2.
I want it possible to add variable expiration timer to units, not sure if this is possible by creating behaviours in data editor. I`m hoping there is a way to do it from triggers, maybe I just didn`t find it?
I think it might be a behaviour, because those spawnling things in the campaign only last for about 10 secs. Try looking at them
Yes, they are now behaviors.
Look at behaviors like "MULE - Timed Life" or "Hallucination Timed Life", dublicate one of them, set the right time and then you can just add the behavior to a unit via triggers.
This is the only way to do it? I would need to create a lot of behaviours if I want variable timed life...
@malkavianVision: Go
I haven't tested this so Im not sure if it will work but... I know you can modify ability cool down times from a trigger. Perhaps you can make a behavior that causes the unit to die but only activate it when the ability is used. Set the ability cool down time to your variable and start each unit with the cool down already activated. Set the unit to use it as soon as it is available and it should function the same as an expiration timer that your can modify with trigger variable.
edit: there may be an easier way to do this, just what I thought of on the spot