I'm currently working on a tower defense. I'm sorry to come with another turret problem but I can't figure out this one :s
My turrets are correctly working, except one point:
if I add to the unit the 'buildable' ability (which I need), it won't rotate anymore. The interesting thing is that my turrets are actually fixed units, not buildings and thus they can die and revive. When the unit is revived, the turret start to function normally again. It's only during the first 'life' of the turret.
If I remove the buildable ability, the turret can turn from its first 'life'.
I thought it may be related to a difference in the events UnitBirth/UnitRevive and UnitConstruction.Finish or something like that but I don't manage to identify the exact root cause.
any idea ? thx
Edit
This article seems to relate a similar problem, saying the turret actor should be destroyed and recreated. I tried with UnitConstruction.MyUnit.Start > Destroy and UnitConstruction.MyUnit.Finish > Create without any success.
Hi,
I'm currently working on a tower defense. I'm sorry to come with another turret problem but I can't figure out this one :s
My turrets are correctly working, except one point: if I add to the unit the 'buildable' ability (which I need), it won't rotate anymore. The interesting thing is that my turrets are actually fixed units, not buildings and thus they can die and revive. When the unit is revived, the turret start to function normally again. It's only during the first 'life' of the turret. If I remove the buildable ability, the turret can turn from its first 'life'.
I thought it may be related to a difference in the events UnitBirth/UnitRevive and UnitConstruction.Finish or something like that but I don't manage to identify the exact root cause.
any idea ? thx
EditThis article seems to relate a similar problem, saying the turret actor should be destroyed and recreated. I tried with UnitConstruction.MyUnit.Start > Destroy and UnitConstruction.MyUnit.Finish > Create without any success.
According to what I read
I unsuccessfully tried with the following events in the turret actor :
Any advice ?