Hey, ich möchte für die Terroisten eine Bombe basteln.
Wie kann ich das machen, das mehrere Explosionen hintereinander in Zeit abständen passieren?
mfg
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
Mit Timern arbeiten.
Und dann
CreateExplosion -
Ja, das ist mir bewust mit CreateExplosion und mit Timern aber wie soll ich das dann genau machen? Das ist mein public:
Function bombexplode(playerid)
{
DestroyObject(bombe);
CreateExplosion(PlayerExplosionX[1]+10, PlayerExplosionY[1]-10, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-10, PlayerExplosionY[1]+10, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+15, PlayerExplosionY[1]-15, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-15, PlayerExplosionY[1]+15, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-5, PlayerExplosionY[1]-5, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+5, PlayerExplosionY[1]+5, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+7.5, PlayerExplosionY[1]-7.5, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-7.5, PlayerExplosionY[1]+7.5, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+20, PlayerExplosionY[1]-20, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-20, PlayerExplosionY[1]+20, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-30, PlayerExplosionY[1]+30, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+30, PlayerExplosionY[1]-30, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-30, PlayerExplosionY[1]+30, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+25, PlayerExplosionY[1]-25, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+10, PlayerExplosionY[1], PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+20, PlayerExplosionY[1], PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+25, PlayerExplosionY[1], PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+15, PlayerExplosionY[1], PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+7.5, PlayerExplosionY[1], PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1], PlayerExplosionY[1]-10, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1], PlayerExplosionY[1]-20, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1], PlayerExplosionY[1]-25, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1], PlayerExplosionY[1]-15, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1], PlayerExplosionY[1]-7.5, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-7.5, PlayerExplosionY[1]-7.5, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-10, PlayerExplosionY[1]-10, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-15, PlayerExplosionY[1]-15, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-20, PlayerExplosionY[1]-20, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]-25, PlayerExplosionY[1]-25, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+7.5, PlayerExplosionY[1]+7.5, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+10, PlayerExplosionY[1]+10, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+15, PlayerExplosionY[1]+15, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+20, PlayerExplosionY[1]+20, PlayerExplosionZ[1], 10, 0);
CreateExplosion(PlayerExplosionX[1]+25, PlayerExplosionY[1]+25, PlayerExplosionZ[1], 10, 0);
} -
Es gibt Explosionen bei den neuen 0.3e Objecten. Kannst ja mal schauen, sehen dort echt gut aus. Damit könnte man eine eigene Explosion machen.
-
Habe mal gegoogelt finde aber nichts. Kannste mir da evt. ne Seite schicken?
Ich will einfach ne Explosion machen wo ca 60 Sekunden geht!.
mfg -
Ne leider nicht, ich schaue mal nach der Object ID.
//Edit
Habe in SA:MP Wiki die ID´s gefunden.
Inhalt anzeigen
18678 explosion_barrelInhalt anzeigen
Inhalt anzeigen
Inhalt anzeigen
18679 explosion_crateInhalt anzeigen
Inhalt anzeigen
Inhalt anzeigen
18680 explosion_doorInhalt anzeigen
Inhalt anzeigen
Inhalt anzeigen
18681 explosion_fuel_carInhalt anzeigen
Inhalt anzeigen
Inhalt anzeigen
18682 explosion_largeInhalt anzeigen
Inhalt anzeigen
Inhalt anzeigen
18683 explosion_mediumInhalt anzeigen
Inhalt anzeigen
Inhalt anzeigen
18684 explosion_molotovInhalt anzeigen
Inhalt anzeigen
Inhalt anzeigen
18685 explosion_smallInhalt anzeigen
Inhalt anzeigen
18686 explosion_tiny -
Danke
Werde mal mein Glück versuchen 
/edit Das mit dem CreateObject funktioniert nicht so ganz.. Könnte mir jemand einen Bomben Public machen?
-
breadfish.de
Hat das Thema geschlossen.