![]() |
Basket Ball Goal
Why doesnt this work?
dontblock; drawoverplayer; if (peltwithnpc) { message SCORE FOR BLUE TEAM!; sleep 3; message ; } |
it only works if the ball is an NPC using
canbecarried and then it's trown at the goal else you'll have to check the x and y positions of the ball |
Quote:
|
Okay I made it work now I need help with the ball:canbecarried;
canbepulled; canbepushed; if (strequals(#l,libasketball_2.nw)&&strequals(#c,new ball)&&strequals(#g,Events Team)) { x = -1; y = 31; } if (strequals(#l,libasketball_1.nw)&&strequals(#c,new ball)&&strequals(#g,Events Team)) { x = 62; y = 31; } it dont warp the ball |
have u ever thought about playerchats in this script?
|
Quote:
|
Quote:
|
yay and it needs to be #L not #l =)
so the next thing if u would say new Ball it would always apear at x=62 so i would add something like && x >31 or something =) |
Quote:
|
this is where NATs come in handy, leave NPC-Scripting to the experts
|
Quote:
|
| All times are GMT +2. The time now is 12:11 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.