![]() |
Why?
why will this not work to give me a flame going up if player faces that way or down if player faces that way?
if (weaponfired&&playermp>9&&playerdir=up){playermp-=10; xAxisPos = 4; while (xAxisPos < 20) { blast1(); if (xAxisPos != 19) { sleep 0.05; } xAxisPos++ } } function blast1() { putexplosion2 2,1,playerx+0.7,playery-xAxisPos; } if (weaponfired&&playermp>9&&playerdir=right){playerm p-=10; xAxisPos = 4; while (xAxisPos < 20) { blast2(); if (xAxisPos != 19) { sleep 0.05; } xAxisPos++ } } function blast2() { putexplosion2 2,1,playerx-xAxisPos,playery; } |
NPC Code: not tested, but it should work... |
playerdir=up
WRONG numerical values 0,1,2 and 3 |
| All times are GMT +2. The time now is 04:51 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.