Skocz do zawartości
  • 0

Poprawa skryptu na granat


Pytanie

Cześć, mógłby ktoś mi poprawić ten skript by działał, chcę uzyskać granat który by sprawdzał, czy gracz który rzuca jest w liście {team.blue::*} a gracz obrywający jest w liście {team.red::*}

Mam błąd przy 8 linijce przy shooter, jak mogę to zastąpić???

Z góry dziękuje!!! :D

Cytat

on rightclick with slimeball:
    name of player's tool is "&2Granat odlamkowy":
        cancel event 
        make the player shoot an item projectile of slimeball at speed 0.8
        remove 1 slimeball named "&2Granat odlamkowy" from player
on item hit:
    if event-item is a slimeball named "&2Granat odlamkowy":
        if "%{team.blue::*}%" contain "%shooter%":
            create a fake explosion at event-location
            spawn 300 of particle explode:0.1 offset by 1, 0.5, 1 at event-location
            spawn 200 of particle smoke:0.4 offset by 0.2, 0.5, 0.2 at event-location
            loop entities in radius 2 of event-location:
                if "%{team.red::*}%" contain "%loop-entity%":
                    ignite loop-entity 
                    damage loop-entity by 1 heart
            loop entities in radius 7 of event-location:
                if "%{team.red::*}%" contains "%loop-entity%":
                    damage loop-entity by 2 heart
        if "%{team.red::*}%" contain "%shooter%":
            create a fake explosion at event-location
            spawn 300 of particle explode:0.1 offset by 1, 0.5, 1 at event-location
            spawn 200 of particle smoke:0.4 offset by 0.2, 0.5, 0.2 at event-location
            loop entities in radius 2 of event-location:
                if "%{team.blue::*}%" contain "%loop-entity%":
                    ignite loop-entity 
                    damage loop-entity by 1 heart
            loop entities in radius 7 of event-location:
                if "%{team.blue::*}%" contains "%loop-entity%":
                    damage loop-entity by 2 heart

 

Edytowane przez LjayPL789
bludis

Poprawiam ortografię.

Notatka dodana przez bludis

Odnośnik do komentarza
https://skript.pl/temat/28719-poprawa-skryptu-na-granat/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...