示例#1
0
        public SerializableSpawnpoint CreateSpawnpoint(SerializableSpawnpoint orig)
        {
            var tmpPed = new Ped(orig.GetEntity().Model, orig.GetEntity().Position, orig.GetEntity().Heading);
            tmpPed.IsPositionFrozen = true;
            tmpPed.BlockPermanentEvents = true;

            var blip = tmpPed.AttachBlip();
            blip.Color = Color.White;
            _blips.Add(blip);

            var tmpObj = (SerializableSpawnpoint)orig.Clone();
            tmpObj.SetEntity(tmpPed);
            CurrentMission.Spawnpoints.Add(tmpObj);
            return tmpObj;
        }