So ive set up some sort of revive system using my knowledge and it should work without deleting stats or the unit at all! But i am stuck on the Behavior event should i choose the behavior increases, decreases, refresh, etc.?
I am going to scratch this revive idea and do what MaskedImposter has suggested I think it may not work because i went through and tried all of them and none of them worked when my unit actually died. It said the text at beginning of game but never when my unit died he did however teleport.
Death time is something you set in the data of the unit. Either make it a really large number (it corresponds to game time seconds. so something bigger than you intend to revive it by), or I think -1 would be infinite. The 1 negative I've seen to this method is that some units like marines will lose their team color, but you can give it back with an actor message.
I have fixed all issues and it is up and running. I used the incapacitated behavior instead of the death prevention and switched it to activated. Thanks both of you. Very useful revive in my opinion. Very easy unlike some.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So ive set up some sort of revive system using my knowledge and it should work without deleting stats or the unit at all! But i am stuck on the Behavior event should i choose the behavior increases, decreases, refresh, etc.?
I think most of the ones involving the valerian behavior use unit damaged event.
I think a better way to do it is where ya give the unit unlimited death time and use the revive unit action.
It depends on how the behavior is applied.
If it applied on when the unit "dies" and it receives the behavior, I think you might to use the activate state.
If it is removed when the unit "dies" then you have to use the deactivate or destroy state.
Any will also work but then it is too violate to work with.
Again, check how the behavior is applied
@RobustProgram: Go
I am going to scratch this revive idea and do what MaskedImposter has suggested I think it may not work because i went through and tried all of them and none of them worked when my unit actually died. It said the text at beginning of game but never when my unit died he did however teleport.
@MaskedImposter: Go
Thanks will try but first not sure what you meant by the action where i give him unlimited death time.
@WesMan00: Go
Death time is something you set in the data of the unit. Either make it a really large number (it corresponds to game time seconds. so something bigger than you intend to revive it by), or I think -1 would be infinite. The 1 negative I've seen to this method is that some units like marines will lose their team color, but you can give it back with an actor message.
@MaskedImposter: Go
I have fixed all issues and it is up and running. I used the incapacitated behavior instead of the death prevention and switched it to activated. Thanks both of you. Very useful revive in my opinion. Very easy unlike some.