I need to put the damageregion. When I set the damageregion, it is not removed as a deathregion. Why?
The problem with the script. Help me please.
Moderator: Moderators
-
correctmushroom2013
- Second Lance Corporal

- Posts: 102
- Joined: Fri Jul 19, 2013 11:10 am
- Projects :: Droid Factory Conquest
- xbox live or psn: No gamertag set
- Location: Russian Federation
The problem with the script. Help me please.
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 
I need to put the damageregion. When I set the damageregion, it is not removed as a deathregion. Why?
- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Re: The problem with the script. Help me please.
Post your LUA and scripts?
-
correctmushroom2013
- Second Lance Corporal

- Posts: 102
- Joined: Fri Jul 19, 2013 11:10 am
- Projects :: Droid Factory Conquest
- xbox live or psn: No gamertag set
- Location: Russian Federation
Re: The problem with the script. Help me please.
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
)- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Re: The problem with the script. Help me please.
Try changing the ( to { for the main two.
- Locutus
- 1st Lieutenant

- Posts: 420
- Joined: Fri Jun 04, 2010 10:08 am
- Projects :: Stargate Battlefront Pegasus
- Location: Germany
- Contact:
Re: The problem with the script. Help me please.
Try DeactivateRegion("Damageregion1").
PS: Gently ignore Kingpins advice unless you want to work with filled lists;)
PS: Gently ignore Kingpins advice unless you want to work with filled lists;)
