View Single Post
  #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