![]() |
Whats wrong with this
Whats wrong with this script?
if (playerenters) { toweapons *SpaceWars; } if (isweapon) { disabledefmovement; disableweapons; disableselectweapons; timeout = 0.1; } if (timeout) { if (keydown(1)&&onwall(playerx-0.5,playery)) { playerx = playerx-0.5; playerdir = 0; } if (keydown(3)&&onwall(playerx+0.5,playery)) { playerx = playerx+0.5; playerdir = 0; } if (keydown(4)) { putexplosion 1,playerx,56; sleep 0.1; putexplosion 1,playerx,54; sleep 0.1; putexplosion 1,playerx,52; sleep 0.1; putexplosion 1,playerx,50; sleep 0.1; putexplosion 1,playerx,48; sleep 0.1; putexplosion 1,playerx,46; sleep 0.1; putexplosion 1,playerx,44; sleep 0.1; putexplosion 1,playerx,42; sleep 0.1; putexplosion 1,playerx,40; sleep 0.1; putexplosion 1,playerx,38; timeout = 0.1; } } |
What is the problem with it?
|
AHAHAHAHAAHA
Thats how I used to script when I first started...yes, yes, it is a scary sight to see. |
Quote:
|
Re: Whats wrong with this
Quote:
|
Re: Whats wrong with this
NPC Code: there ye go. |
Re: Re: Whats wrong with this
Quote:
lolz nice script ;) |
:-D
thanks you are ownage :D
|
~AlphaFlame~
Hey hey, Poogle... you know, they have this really really l33t thing called "commands.rtf", right? And, like, it has really cool commands that can shorten your scripts! I mean, it's so amazing... I think you should read it a few million times. |
Quote:
|
timeout needs to be in the main loop
|
Re: Re: Whats wrong with this
NPC Code: Still kinda ugly, but easy to read. I still think you should have figured that out yourself by troubleshooting...the original problem was just a missing ! in front of the onwall() functions. |
and uhm... when you get an npc weapon, the playerenters and create flags are sent to it so you could just do in the created area, the timeout loop =\
|
| All times are GMT +2. The time now is 07:20 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.