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 03-19-2012, 06:12 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
onwall2() issue

It's been awhile since I've used GS2, so I may just be missing something completely obvious. Any who, I'm getting into the swing of things and I start making an online baddie, when do movement checks onwall2() always returns true. I have set the shape and the checks are outside this. When I put the baddie on the clientside though, the onwall2() works properly.

Here's the script part :

PHP Code:
        this.dir getdirthis.nx this.xthis.ny this.y);
        
temp.cX this.dir in 13}? this.dir == 1this.1this.3.5this.0.5;
        
temp.cY this.dir in 02}? this.dir == 0this.1this.3.5this.1;
        
temp.cW absvecythis.dir)) + 1;
        
temp.cH absvecxthis.dir)) + 1;

        if ( !
onwall2temp.cXtemp.cYtemp.cWtemp.cH) && !onwater2temp.cXtemp.cYtemp.cWtemp.cH))
        { 
__________________
Deep into the Darkness peering...
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 02:01 AM.


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