|
|
楼主 |
发表于 2021-12-19 12:41:24
|
显示全部楼层
各位大大们:DP写的有bug,当目标附近只有自己的时候,没有效果。
抱歉,摆烂了,else部分空着没写,这里补上
else {
CoordStruct from2 = Owner.Get().OwnerObject.Ref.Base.Base.GetCoords();
CoordStruct to3 = pTechno1.Ref.Base.Base.GetCoords();
Pointer<BulletClass> pBullet2 = CreateBullet(damage);
Pointer<LaserDrawClass> pLaser3 = YRMemory.Create<LaserDrawClass>(from2, to3, innerColor, outerColor, outerSpread, 180);
pLaser3.Ref.Thickness = 7;
pLaser3.Ref.IsHouseColor = true;
pBullet2.Ref.Detonate(to3);
} |
|