Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-28-2001, 10:28 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
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...
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.