Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-08-2008, 06:40 AM
Stryke Stryke is offline
Scripter
Join Date: Apr 2008
Posts: 157
Stryke is an unknown quantity at this point
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
setTimer0.05 );
}
function 
onTimeOut() {
  
this.clonedir = ((player.dir 2) % 4);
  
this.clonedx player.vecx(this.clonedir) * 2;
  
this.clonedy player.vecy(this.clonedir) * 2;
  
with (findimg(200)) {
    
layer 0;
    
thiso.clonedx;
    
thiso.clonedy;
    
player.z;
    
ani player.ani "[" player.anistep "]";
    
dir player.dir;
    
playerlook true;
    
actor.mode 1;
    
zoom 1;
  }
  
setTimer(.05);
}

function 
onActionHit() {
  
//damage code

Something like this I guess
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 10:08 PM.


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