Resurrect from grave in lua

2 replies [Last post]
easy
User offline. Last seen 2 weeks 1 day ago. Offline
Joined: 2011-09-20
Posts: 12

I’m working on a game mod and having some difficulty with resurrect.

As an example id like to resurrect a grave on end of turn with a static health total, let’s use 25. It does not need to be in the resurrect circle. Any grave will do for this example.

If I know the grave gear using gtGrave I can access the Pos that has the hoguid but what to do from there? I don’t need any animation.

h3oCharles
h3oCharles's picture
User offline. Last seen 6 days 13 hours ago. Offline
Joined: 2012-10-19
Posts: 140

give the hog ressurectable effect instead

LuaGears: SetEffect
LuaEvents: onGearResurrect

oh hi

easy
User offline. Last seen 2 weeks 1 day ago. Offline
Joined: 2011-09-20
Posts: 12

resurrectable effect causes them to resurrect immediately upon death is how i understand it. I am trying to be more selective with graves specifically, not immediately. unless i am not setting the effect at the correct time yet. I'll continue to play with using seteffect

Is resurrect possible by a specific grave gear type?

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]