GangwarFix zweiter Tag 2

This commit is contained in:
VegaZ
2021-03-30 20:02:48 +02:00
parent 89be8372c7
commit f9380b1137

View File

@@ -131,7 +131,7 @@
mp.game.invoke(Natives.SET_BLIP_SPRITE, self.blip, 5);
mp.game.invoke(Natives.SET_BLIP_ALPHA, self.blip, 70);
mp.game.invoke(Natives.SET_BLIP_COLOUR, self.blip, self.color);
self._colshape = mp.colshapes.newCircle(self.x, self.y, self.range * 1.5);
}
render() {
@@ -245,6 +245,7 @@
self._status = "attack";
self.attacker = args[1];
//self.blip.setFlashes(true);
//self.blip.setFlashInterval(1000);
mp.game.invoke(Natives.SET_BLIP_FLASHES, self.blip, true);
mp.game.invoke(Natives.SET_BLIP_FLASH_INTERVAL, self.blip, 1000)
return;
@@ -464,7 +465,8 @@
while (mp.game.invoke(Natives.DOES_BLIP_EXIST, last_blip)) {
mp.game.invoke(Natives.SET_BLIP_SPRITE, last_blip, -1);
mp.game.invoke(Natives.REMOVE_BLIP, last_blip, -1);
mp.game.ui.removeBlip(last_blip);
mp.game.invoke(Natives.SET_BLIP_ALPHA, last_blip, 0);
mp.game.ui.removeBlip(last_blip);
last_blip = mp.game.invoke(Natives.GET_NEXT_BLIP_INFO_ID, 5);
x++;
}