Quote:
Originally Posted by Deas_Voice
what are the params of actionprojectile2()?
yeah i know x and y is params1 and params2'
but the others?
for example i cant do :
PHP Code:
setShootParams(this.x, this.y, 2);
and when on the function
PHP Code:
function onActionProjecTile2(xx, yy, id)
{
if (id == 2)
{
putLeaps( 4, xx, yy );
}
no leaps.
thanks.
|
Why not just do
echo(params); and determine what causes it? In your above example, your 'id' is actually relative to
this.x in setShootParams. Basically, the first two are predefined. The next after those are the shoot parameters you specified. Try replacing
id in your
if statement to
params[4] and see if that works.