
12-28-2001, 10:28 AM
|
|
Registered User
|
 |
Join Date: Mar 2001
Posts: 7,989
|
|
Help the newbie scripter?
|
Hi, I need some help, I'm trying to make an NPC weapon that when you hold down a button then it does something, but I'm stuck, can push me off a cliff that's in the right direction please? here's what I have so far, for the example I made it put leaps at the player's X and Y
---------------------------------------------------------------------------------
// NPC made by Shadowless Warrior
if (playerenters) {
}
if (playertouchsme) {toweapons automatic test;
}
if (keydown(6)) {timeout=0.5;}
else {timeout=0;}
if (timeout) {putleaps 0,playerx,playery;timeout=0.5;}
simple I know, but scripting confuses me... |
|
|
|