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-23-2006, 02:38 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
onwall() not working in a gani

I'm using a gani to display the movement of a boomerang. The NPC weapon controlling the boomerang also calculates the position of the boomerang, but it only uses the position to deal damage/pick up items.

When the boomerang strikes a wall, it should place leaps and rebound. However, the weapon part of the script is catching a wall and rebounding. The gani portion which is showing the boomerang can't check for walls, so it looks like the boomerang goes through the wall.

Could onwall functions for ganis be added?

To back up my claims:
[PHP]// Script in gani timeout
echo("a" SPC onwall(this.bpos[0]+(10/16),this.bpos[1]+(10/16)) SPC this.bpos[0]+(10/16) SPC this.bpos[1]+(10/16));
// Script in weapon timeout
echo("b" SPC onwall(this.bpos[0]+(10/16),this.bpos[1]+(10/16)) SPC this.bpos[0]+(10/16) SPC this.bpos[1]+(10/16));

The positions are consistant, but the gani script never returns true for onwall.
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 01:40 PM.


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