Hi,
What files do I need to change to make a wall block friendly fire ?
(i'm using a mod with T2 and T3 walls and my units firing through them look ridiculous)
Thanks for your help.
Forged Alliance Forever Forums
Moderators: FtXCommando, Ze Dogfather
local UnitOld = Unit
Unit = Class(UnitOld) {
OnCollisionCheck = function(self, other, firingWeapon)
if EntityCategoryContains(categories.WALL, other) then
return true
end
UnitOld.OnCollisionCheck(self, other, firingWeapon)
end,
}
local UnitOld = Unit
Unit = Class(UnitOld) {
OnCollisionCheck = function(self, other, firingWeapon)
if EntityCategoryContains(categories.WALL, self) then
return true
end
return UnitOld.OnCollisionCheck(self, other, firingWeapon)
end,
}
Sheeo wrote:
Remember to return the value that UnitOld.OnCollisionCheck yields
Krapougnak wrote:It worked !!! Thanks a lot !Sheeo wrote:
Remember to return the value that UnitOld.OnCollisionCheck yields
What do you mean by that ?
UnitOld.OnCollisionCheck(self, other, firingWeapon)
return UnitOld.OnCollisionCheck(self, other, firingWeapon)
Users browsing this forum: No registered users and 1 guest