How do I create explosion?
#1

I want to create 4 explosions inside the bank, interior 6.
This is what I have done.
Код:
		CreateExplosion(2315.6775,0.0957,26.7422, 1, 5.0);
		CreateExplosion(2315.6775,0.0957,26.7422, 1, 5.0);
		CreateExplosion(2315.6775,0.0957,26.7422, 1, 5.0);
		CreateExplosion(2315.6775,0.0957,26.7422, 1, 5.0);
It just won't work..
I don't hear anything and I don't see anything either.
Reply
#2

Are you actually at that location though? Test it using this....
pawn Код:
// Get the player's position
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
 
    // Create an explosion at the player's position
    CreateExplosion(x, y, z, 12, 10.0);
 
    return 1;
Reply
#3

Quote:
Originally Posted by DLR
Посмотреть сообщение
Are you actually at that location though? Test it using this....
pawn Код:
// Get the player's position
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
 
    // Create an explosion at the player's position
    CreateExplosion(x, y, z, 12, 10.0);
 
    return 1;
I don't want it to explode where the player is at.
I have used /save in-game to save the location of where I want them to be.
Reply
#4

Yeah but I'm just saying, use that to test it to make sure it works first. Then set the coordinates and type of explosion you want. Then make sure you're near by to see it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)