コード例 #1
0
        partial void pOnEndPos()
        {
            if (DoHitDetection(BaseInst.LastPosition, Destination))
            {
                return;
            }

            ItemInst item = this.Item;

            if (item != null)
            {
                item.Spawn(this.World, this.Destination, this.GetAngles());
                this.World.DespawnList_PItems.AddVob(item);
            }
        }
コード例 #2
0
 void DropItem(ItemInst item, Vec3f position, Angles angles)
 {
     item.Spawn(this.World, position, angles);
     item.BaseInst.SetNeedsClientGuide(true);
     item.Throw(Vec3f.Null);
 }