Esempio n. 1
0
 protected void HandleBlips(BlipColor color)
 {
     if(!targets.Any()) return;
     foreach (MyEntity target in targets)
     {
         target.AddBlip(color);
     }
 }
 public StreamedPed(PedStreamer streamer, string model, string networkname, Vector3 position, float heading, BlipColor color)
     : base(streamer)
 {
     this.position = position;
     this.heading = heading;
     this.networkname = networkname;
     this.model = model;
     direction = Vector3.Zero;
     hasNetworkName = false;
     vehicle_id = 0;
     CurrentChatMessage = "";
     animator = new PedAnimationManager(this);
 }
Esempio n. 3
0
 public Blip()
 {
     currentColor = BlipColor.Default;
     currentIcon  = BlipIcon.Misc_Destination;
 }
Esempio n. 4
0
 public Blip()
 {
     currentColor = BlipColor.Default;
     currentIcon = BlipIcon.Misc_Destination;
 }
Esempio n. 5
0
 public static Blip CreateBlip(Vector3 location, BlipSprite sprite, BlipColor color)
 {
     Blip blip = World.CreateBlip(location);
     blip.Sprite = sprite;
     blip.Color = color;
     blip.IsShortRange = true;
     return blip;
 }
Esempio n. 6
0
 public void AddBlip(BlipColor color)
 {
     blip = World.CreateBlip(Position);
     blip.Color = color;
 }
Esempio n. 7
0
 protected void HandleRoute(BlipColor color)
 {
     blip = World.CreateBlip(location);
     blip.Color = color;
     Function.Call(Hash.SET_BLIP_ROUTE, blip, true);
     Function.Call(Hash.SET_BLIP_ROUTE_COLOUR, blip, (int)color);
 }