Forum Gtatwo Strona Główna  
 FAQ  •  Szukaj  •  Użytkownicy  •  Grupy •  Galerie   •  Rejestracja  •  Profil  •  Zaloguj się, by sprawdzić wiadomości  •  Zaloguj
 Skrypt... Jak zrobić. Zobacz następny temat
Zobacz poprzedni temat
Napisz nowy tematOdpowiedz do tematu
Autor Wiadomość
Razor
DonCorleone
<i>DonCorleone</i>


Dołączył: 22 Maj 2008
Posty: 3028 Przeczytał: 3 tematy

Ostrzeżeń: 0/5

PostWysłany: Czw 21:53, 06 Paź 2011 Powrót do góry

CHECK WEAPON TYPE HIT CHAR
Checks to see if a particular character has just been hit by a "bullet type" - these are roughly the same as weapon types, but not quite as precise. All machine guns & pistols fire the same type of bullets for instance. You'll have to keep this in mind… Returns true if the char has been hit, false if not.

Another thing to remember with this is that you must call it before the weapon hits - it needs to set up some stuff internally to watch for the hit - so don't expect it to work on a char being hit /before/ you check it… Put it in a loop,getting called each cycle..

See bottom of document for a list of 'DAMAGE_TYPES'.

CHECK_WEAPON_TYPE_HIT_CHAR (char name, damage type)
Parameters
char name: name of a previously created character, including the player
damage type: string detailing the 'type' of damage to look out for.


BY_EXPLOSION
BY_DROWNING
BY_PUNCH
BY_GUN
BY_CAR_BOMB
BY_FIRE
BY_FLAMETHROWER
BY_GRENADE
BY_MOLOTOV
BY_ROCKET_LAUNCHER
BY_ELECTRO_WEAPON
BY_SHOTGUN
BY_WATER_CANNON
BY_ANY_WEAPON
BY_ANY_FOOT_WEAPON // use this to check for player killing things while on foot, NOT in a car!


Czyli (skjrypt pisze na oko bez kompilowania - moga byc bledy moze ktos je wykryje):

IF (CHECK_WEAPON_TYPE_HIT_CHAR (player1, BY_SHOTGUN))
KILL_CHAR (player1)
ENDIF

TAK SAMO z resztą graczy TYLKO zapętlcie ich CHECK_CHARACTER_HEALTH (name, pointvalue), żeby gta2 sprawdzało czy są w grze Smile


polecam: [link widoczny dla zalogowanych]


Ostatnio zmieniony przez Razor dnia Czw 21:56, 06 Paź 2011, w całości zmieniany 2 razy
Zobacz profil autora
Wyświetl posty z ostatnich:      
Napisz nowy tematOdpowiedz do tematu


 Skocz do:   



Zobacz następny temat
Zobacz poprzedni temat
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach


fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001/3 phpBB Group :: FI Theme :: Wszystkie czasy w strefie CET (Europa)