Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   ActionProjecTile2(params)? (https://forums.graalonline.com/forums/showthread.php?t=82598)

Deas_Voice 11-01-2008 12:48 AM

ActionProjecTile2(params)?
 
what are the params of actionprojectile2()?

Quote:

Originally Posted by wiki
actionprojectile2 a projectile has landed (client-side) (#p(0),#p(1)are x,y; #p(2),#p(3) are params)

yeah i know x and y is params0 and params1'
but the others?

for example i cant do :
PHP Code:

setShootParams(this.xthis.y,  2); 

and when on the function
PHP Code:

function onActionProjecTile2(xxyyid)
{
  if (
id == 2)
  {
    
putLeaps4xxyy ); 
  } 

no leaps.

thanks.

Programmer 11-01-2008 01:10 AM

Quote:

Originally Posted by Deas_Voice (Post 1438036)
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.xthis.y,  2); 

and when on the function
PHP Code:

function onActionProjecTile2(xxyyid)
{
  if (
id == 2)
  {
    
putLeaps4xxyy ); 
  } 

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.

Tigairius 11-01-2008 01:13 AM

not to be picky but it's hilarious that you capitalized the T in projectile

Shotoo2 11-01-2008 02:16 AM

Quote:

Originally Posted by Tigairius (Post 1438040)
not to be picky but it's hilarious that you capitalized the T in projectile

he did it in honor of you Tig

Deas_Voice 11-01-2008 09:17 PM

Quote:

Originally Posted by Shotoo2 (Post 1438059)
he did it in honor of you Tig

haha good 1 ^^

Deas_Voice 11-01-2008 09:18 PM

Quote:

Originally Posted by Programmer (Post 1438039)
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.

yeah ok i'll try that

Deas_Voice 11-01-2008 10:56 PM

hmm'
seem like there is no params 2 and 3'

so i guess its like this:
PHP Code:

setShootParams(xyparams[4],params[5],ect ); 

havent tested after params 5 tho'

so on the ActionProjectile2() params would look like this:
PHP Code:

function onActionProjectile2(xxyy, var, var2iddmg

var and var2 is empty.

seems odd, no params 2 or params 3'

it dident echo anything'

Programmer 11-02-2008 12:52 AM

Quote:

Originally Posted by Deas_Voice (Post 1438256)
hmm'
seem like there is no params 2 and 3'

so i guess its like this:
PHP Code:

setShootParams(xyparams[4],params[5],ect ); 

havent tested after params 5 tho'

so on the ActionProjectile2() params would look like this:
PHP Code:

function onActionProjectile2(xxyy, var, var2iddmg

var and var2 is empty.

seems odd, no params 2 or params 3'

it dident echo anything'

Please use the edit button rather than triple-posting. Try this:

PHP Code:

setShootParams("foo");
//...

function onActionProjectile2()
{
echo(
params);
//...


See what comes up.

Deas_Voice 11-02-2008 01:38 AM

Quote:

Originally Posted by Programmer (Post 1438283)
Please use the edit button rather than triple-posting. Try this:

PHP Code:

setShootParams("foo");
//...

function onActionProjectile2()
{
echo(
params);
//...


See what comes up.

well i solved my problem but sure i can test that
Edit: noting gets echod on your example!

LoneAngelIbesu 11-02-2008 02:16 AM

Quote:

Originally Posted by Deas_Voice (Post 1438289)
well i solved my problem but sure i can test that
Edit: noting gets echod on your example!

I'm not sure if you can use params as an array. I think it might be required to use params[0], params[1], params[2] etc. I could be wrong, though.


All times are GMT +2. The time now is 05:30 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.