Page 1 of 1
The problem with the script. Help me please.
Posted: Sun Jan 19, 2014 7:02 am
by correctmushroom2013
I did turbine, as on map Tantive 4. Set
deathregion. If you destroy the turbine region is removed.
I need to put the
damageregion. When I set the damageregion, it is not removed as a deathregion. Why?

The script is the same, I just replaced the region. Please help

Re: The problem with the script. Help me please.
Posted: Sun Jan 19, 2014 12:24 pm
by Kingpin
Post your LUA and scripts?
Re: The problem with the script. Help me please.
Posted: Mon Jan 20, 2014 12:19 pm
by correctmushroom2013
Code: Select all
animateobja = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "pnl" then
PauseAnimation("turbo")
RemoveRegion("Damageregion1")
end
end
)
OnObjectRespawn(
function (object)
if GetEntityName(object) == "pnl" then
PlayAnimation("turbo")
AddDamageRegion("Damageregion1")
end
end
)
Re: The problem with the script. Help me please.
Posted: Sun Jan 26, 2014 10:13 pm
by Kingpin
Try changing the ( to { for the main two.
Re: The problem with the script. Help me please.
Posted: Wed Jan 29, 2014 5:55 pm
by Locutus
Try DeactivateRegion("Damageregion1").
PS: Gently ignore Kingpins advice unless you want to work with filled lists;)