Author Topic: SpawnProjectile Function  (Read 1900 times)

Does anybody know what the arguments for the SpawnProjectile function are?
i searched the forums and google, but i cant find it.

Does anybody know what the arguments for the SpawnProjectile function are?
i searched the forums and google, but i cant find it.
You can just look at the event to find the args.

allright, the projectile is spawning, but its not doing any damage, ive tryed it with other projectiles and it never doing any damage.

Are you in the mini-game?

allright, the projectile is spawning, but its not doing any damage, ive tryed it with other projectiles and it never doing any damage.

Off topic, but where did you get your avatar? I remember seeing it on Flipnote Studio, but they probably just remade it from where you got that. It was animated.

There's another argument after the scale which should be a valid client. If in a minigame they'll own it and can hurt people.

Valid client? im trying to make a projectile using a script, and it isent doing damage. im in the minigame, the projectile spawns and it does no damage. its like the projectile itself isent in the minigame.

and btw Mega, its the other way around. i tryed to make a looping avatar out of the thing on flipnote studio but it was stupid and diddent loop.

fxDTSBrick::spawnProjectile(%vector,%data,%spread,%scale,%client)
Player::spawnProjectile(%speed,%data,%spread,%scale,%client)

%vector = firing vector e.g. "0 10 0" is north and quite slow
%data = projectile datablock
%spread = spread vector e.g. "10 10 10" will adjust the aim by up to 10 units in any XYZ direction
%scale = number 0.1 - 5
%client = owner of projectile, determining minigame damage, friendly fire rules and similar

%client = owner of projectile, determining minigame damage, friendly fire rules and similar
would that be their brickgroup or just their client object's ID

Client object.

%player.client