Blockland Forums > Modification Help

SpawnProjectile Function

Pages: << < (2/2)

Space Guy:

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.

Ipquarx:

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.

Space Guy:

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

otto-san:


--- Quote from: Space Guy on August 11, 2010, 04:13:06 PM ---%client = owner of projectile, determining minigame damage, friendly fire rules and similar

--- End quote ---
would that be their brickgroup or just their client object's ID

Space Guy:

Client object.

%player.client

Pages: << < (2/2)

Go to full version