Statistics: Posted by Krapougnak — 22 Oct 2014, 09:02
Sheeo wrote:
Remember to return the value that UnitOld.OnCollisionCheck yields
UnitOld.OnCollisionCheck(self, other, firingWeapon)
return UnitOld.OnCollisionCheck(self, other, firingWeapon)
Statistics: Posted by Sheeo — 22 Oct 2014, 01:09
Sheeo wrote:
Remember to return the value that UnitOld.OnCollisionCheck yields
Statistics: Posted by Krapougnak — 21 Oct 2014, 22:58
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,
}
Statistics: Posted by Sheeo — 21 Oct 2014, 10:16
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,
}
Statistics: Posted by Krapougnak — 21 Oct 2014, 09:29
Statistics: Posted by Krapougnak — 20 Oct 2014, 10:08
Statistics: Posted by Krapougnak — 19 Oct 2014, 09:45