![]() |
Dx Dy
hello,
you may know me as Dragona2002 but this just an new acc ;) well ok... question :D im working on a script / sniper rifle but i want to make an shoot bullet effect on the snipex,snipey when i fire the weapon.... i just have problems with Dx and Dy x.x heres the script (any commands are welcome ;) yeah i know im not the bestest scripter :p) NPC Code: |
Too much erros x.x'
But it's nice..=) well,i have a better idea for a gun.. NPC Code: Note:it's not a full script Kai,don't delete please. =) |
mine isnt done yet too !
but sum 1 plz answer my question.... kai ? falcor ? anyone ? dx dy.... |
dx and dy on what?
oh, and you might want to look up vecx(dir) vecy(dir) and getangle(dx,dy) that'll change 24 lines of your script into 2 :p |
dx = delta x
dy = delta y vecx stands for vector x -- it's an array of 4 numbers (0,-1,0,1) vecy stands for vector y -- also an array of 4 numbers (-1,0,1,0) Now lets look at vecx(0). ... It would look inside the array (0,-1,0,1); and would grab the FIRST number, because all array's start at 0, not 1. So, vecx(0) would return '0'. if it was vecx(1), it would return the 2nd number of the arra; which is -1... and so on and so forth... Test script NPC Code: |
I have a strange feeling that script was stolen, and edited and then because the person that made it doesn't know how to script, they are incapable of recognizing the errors they made. :/
I'll point a few things out that don't seem right. - timeout is misspelled - not sure why weaponfired is nested inside of isweapon. doesn't seem nevessary for it to be that way. - an index higher than 200 (i think) can not be seen by other players. - not sure if timeout=0 is efficient enough to end a loop. I usually use break; to end my loops. - I'm sure there's more errors, but the code is quite messy. |
because my other one was banned for credit card fraud
(i dont fraud :\ ) but why cant i get an normal answer on my question ? u guys know the bar in UN in towncenter right ? well theres an NPC that passes u beer from the npc it will pass a beer straight to the player... you can do that script with the command "move" right ? well how i make the npc so the player can shoot a gani (dun mind what yet ill make a gani for it soon) straight to "snipex,snipey" (look in the script to understand snipex snipey x.x) ;) i hope its going to be clear already :rolleyes: ::i dont steal scripts:: an btw this is one of my first scripts.... omi |
Kai, I believe the general rule is that there is no ban evasion in acquiring a legitimate upgrade after falling prey to a fraudulent upgrader.
|
i never frauded i dont have a reason to fraud,
hackers do it for fun , but cant hack though , and i dont have fun with those kindda things... |
thats right kai -_-
but have any idea ? the question i asked... i dont have an answer yet... |
example plz :D
|
| All times are GMT +2. The time now is 02:18 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.