[HELP] Electric Fence
#7

Quote:
Originally Posted by Janoz12
View Post
It's going to be a little complicated to get this to work properly.

The problem occurs because 'IsPlayerInRangeOfPoint' detects if the player is in the range of the set coordinate.

So you put an object in a coordinate, but that object is bigger, but the function 'IsPlayerInRangeOfPoint' only corresponds to the coordinate of the object, but not to the object as such.

Simply put, you have to get close to the exact coordinate, but not the object.

Suggestion:

Try creating the objects normally, and set the coordinates apart so that when a player gets close it will damage it.

Example:

You put a fence normally, and set 3 coordinates inside that fence (left, center, right), and if the player gets close to one of those areas, it damages it.
I tried it, and it didn't work
i'm trying to do this in a separate FilterScript
Reply


Messages In This Thread
[HELP] Electric Fence - by RogerX - 04.04.2020, 21:21
Re: [HELP] Electric Fence - by Janoz12 - 04.04.2020, 21:51
Re: [HELP] Electric Fence - by v1k1nG - 05.04.2020, 00:56
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 01:07
Re: [HELP] Electric Fence - by Janoz12 - 05.04.2020, 06:08
Re: [HELP] Electric Fence - by David (Sabljak) - 05.04.2020, 08:38
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 10:47
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 10:52
Re: [HELP] Electric Fence - by Janoz12 - 05.04.2020, 14:15
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 15:44

Forum Jump:


Users browsing this thread: 2 Guest(s)