Explotion help
#21

Quote:
Originally Posted by Forbidden
Посмотреть сообщение
Follow...
This will make it a bit harder for you.

Do a timer, like in the Command, which repeats after a time, example: SetTimerEx("ExplodeRepeat", 1000, true, "i", playerid);
In this public, you create the Explosion with the defined Position...
I don't think I understand what you are saying.

After a few times of reading it I understand better, but how would I do the public one?
Reply
#22

Quote:

SetTimerEx("ExplodeRepeat", 1000, true, "i", playerid);

forward ExplodeRepeat (playerid);
public ExplodeRepeat (playerid)
{
for( new i = 0; i < 500; i++ )
{
new float : x, y, z// adjust
CreateExplosion( bla bla ); // adjust
}
}

Please adjust it, I saw many times, that "peoples"
assume it into their scripts...
Reply
#23

By adjust it you mean...
Reply
#24

Dude ,
I wrote
Quote:

new float : x, y, z

so

Quote:

new Float: x,
Float: y,
Float: z
;

Reply
#25

Quote:
Originally Posted by Forbidden
Посмотреть сообщение
Dude ,
I wrote


so
So for the createexplosion it would be...CreateExplosion(x, y, z, 11, 25.0); ?
Reply
#26

Exactly.
Here the whole thing, so you cant become confused:
Quote:

SetTimerEx("ExplodeRepeat", 1000, true, "i", playerid);

forward ExplodeRepeat (playerid);
public ExplodeRepeat (playerid)
{
for( new i = 0; i < 500; i++ )
{
new Float: x,
Float: y,
Float: z
;
GetPlayerPos( playerid, x, y, z );
CreateExplosion(x, y, z, 11, 25.0)
}
}

Reply
#27

Quote:
Originally Posted by Forbidden
Посмотреть сообщение
Exactly.
Here the whole thing, so you cant become confused:
Cool, Okay I'll test it and let you know.

EDIT: It still did not follow me.

EDIT1: I fixed it, now it is in my way when I walk, how can I make it so it spawns a bit more behind me?
Reply
#28

Add something to the Coordinates.
For example for Coord x :
Quote:

CreateExplosion(x + 5, y, z, 11, 25.0)

Reply
#29

Quote:
Originally Posted by Forbidden
Посмотреть сообщение
Add something to the Coordinates.
For example for Coord x :
Okay, Now that I got that I saw this where it looked like wing (Explosion ID 5) and it did not blow up like it is doing me, how would I do this?
Example:

Found this off USRP
Reply
#30

anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)