Jump to content
Sign in to follow this  
Igor Q.

Most effective way of checking out of bounds with Local Points?

Recommended Posts

Hello!
I have a list of instructions within a global storage that allow me to cast fire spells.

However, to prevent loop errors, all instructions rely on using Local values (this will allow multiple players to cast the same fire spell).

 

My issue is I now want to add restrictions and barriers where the fire spell stops if it hits a wall or obstacle (not player).

The issue with this is unless I have very simple geometry it is difficult to do. The Zone Logic does not offer any way to check if a point or game logic point enters it's zone.

 

I would like to know the most effective/simplest solution to solve this problem.

This is an example of the code used for a simple linear fireball spell

image.thumb.png.72a4423a19961e3aec570a092d601f40.png

Share this post


Link to post
Share on other sites

I don't think that there is a simple way to do it right now. Your best chance is to create a bunch of trigger zones and place them around the obstacles in your map and see if the item entering is apart of the fireball. If so despawn the item.

Share this post


Link to post
Share on other sites

The problem is without using zones, which as you say dont work anyway, then we have to check where every block is in relation to the spell, and we have no efficent easy way of refrencing all of them so I personal cant think of any way at the moment..

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×