Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-03-2001, 09:50 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Re: hers the script FILL ME UP DOC!

first thing:
make a better keydown-routine with for loops

for(this.i=0;this.i<4;this.i++){
if(keydown(this.i)){
if(!onwall(playerx+1.5+vecx(this.i)*.5,playery+2+v ecy(this.i)*.5)){
playerx+=vecx(this.i)*.5;
playery+=vecy(this.i)*.5;
playerdir=this.i;
}
}
}

it's not a good onwall check but I dont want to write too much

I would also use triggeractions for filling up but I think there is a better way then this I think of, if u use NPC-Server...
__________________
No Webhost at the moment
Reply With Quote
Reply


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 02:27 AM.


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