Page 1 of 1
neutral autoturret??
Posted: Thu Aug 07, 2014 7:18 am
by Anakin
Is it possible to change something in an autoturret's odf to make it neutral to the units??
It's because of my shild dispenser. They don't hurt anyone, but the enemy always try to destroy it.
Re: neutral autoturret??
Posted: Thu Aug 07, 2014 8:56 am
by GAB
I'm not expert in these kind of things but maybe making the turret belong to a third team that is friendly of everyone could do the trick?
Re: neutral autoturret??
Posted: Thu Aug 07, 2014 12:28 pm
by AQT
Have you simply tried the ODF parameter
?
Re: neutral autoturret??
Posted: Thu Aug 07, 2014 12:50 pm
by Anakin
does not work

Re: neutral autoturret??
Posted: Thu Aug 07, 2014 2:45 pm
by Teancum
Try setting it's team to something high, such as 7. Then set team 7 friendly to your units, and your units friendly to team 7
Re: neutral autoturret??
Posted: Fri Aug 08, 2014 8:03 am
by Anakin
Does not work
==EDIT==
just tryed this under protperties
AvailableForAnyTeam = "1"
and this under GameObjectClass
Team = "0"
both made the enterable turret to be neutral, AFTER i enter it the first time. If i do not enter it is not neutral any idea why??
For the autoturret (shield generator) both do not work
Re: neutral autoturret??
Posted: Fri Aug 08, 2014 8:52 am
by Locutus
You could try sth. like this:
Code: Select all
OnCharacterDispensePowerup(
function(player, powerup)
if GetEntityClass(powerup) == FindEntityClass("YOUR_TURRET") then
print("Log info: turret dispensed")
SetProperty(powerup, "Team", 0)
SetProperty(powerup, "PerceivedTeam", 0)
end
end
)