Quote:
Originally Posted by Liberated
Thank you, i've got a few questions tho, what do the Xoffset and the Yoffset do? do they do exactly the same as what i wrote, or do you put them in a database npc and then put somewhere in the weaponscript xoffset=-5 or something?
And what do you mean with indented? Indented in a script?
|
No no no.
xOffset and yOffset are function parameters. When you call the function (like you would sleep(0.1)), you have the ability to pass variables to the function.
In the script, you just put in this into
onWeaponFired() :
PHP Code:
getCoordinates(7, 7);
above
putexplosion2(1,2,this.x,this.y);