View Single Post
  #4  
Old 08-12-2009, 05:37 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by Liberated View Post
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(77); 
above putexplosion2(1,2,this.x,this.y);
Reply With Quote