#(JustinS) Trying to make a Force field / Shield (OLD: Flagging players with almost unique flags
1 messages · Page 1 of 1 (latest)
(JustinS) Flagging players with almost unique flags
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
wait
maybe I found a workaround
yeah no that wouldnt work
What Im trying to do:
If theres 2 players inside the same shield, the if check should return false.
If theres 1 player inside a shield, and the target is outside, return true
If theres 1 player inside a shield, and the target is in a shield as well, but in a DIFFERENT shield than the player, return true
!t areatag.players
Did you mean to search for worldtag.players?
Gets a list of all players currently within the area.
ListTag(PlayerTag)
# Narrates a list of players' names that are within the area.
# For example: "List of players in 'my_cuboid': steve, alex, john, jane"
- narrate "List of players in 'my_cuboid': <cuboid[my_cuboid].players.formatted>"
if its a cuboid, theres this
!t ellipsoidtag.players
Gets a list of all players currently within the area.
ListTag(PlayerTag)
# Narrates a list of players' names that are within the area.
# For example: "List of players in 'my_cuboid': steve, alex, john, jane"
- narrate "List of players in 'my_cuboid': <cuboid[my_cuboid].players.formatted>"
areaobject not areatag kek, whoops
But how would I get the area? Im not noting it anywhere because it only exists for like 10-20 seconds
define or flag it
to what?
?
A flag requires something to flag it to. I cant just flag a location with its location
then I cant retrieve it anywhere
you can actually
server flag is global
then Ill do that
But then I come back to my original question
Im flagging the area as shield<player.uuid>
to link it to the player
oh wait
So I tried messing around with this and got it partially working. Only thing is, when I look at the sky, and the target becomes the player, I always get the message "You cant use the force on targets outside the shield". Here's what I've tried
https://paste.denizenscript.com/View/123444
I also tried changing the && to || though that didnt change it.
logs:
https://paste.denizenscript.com/View/123446
hmm right so the location is not right
the ellipsoid Im using
isnt defined properly (the one Im flagging)
I tried
<ellipsoid[<[origin].x>,<[origin].y>,<[origin.z]>,<[origin].world.name>,3.8,3.8,3.8]>
with
- define origin <player.location.add[0,1.2,0]>
but it doesnt recognize origin
inside he ellipsoid
(JustinS) Trying to make a Force field / Shield (OLD: Flagging players with almost unique flags
Anyone know how to create an ellipsoid with a variable as location?
Am trying to return whether the player is inside the ellipsoid, which has the center <[origin]>
!tag to_ellipsoid
Returns an ellipsoid centered at this location with the specified size.
Size input is a vector of x,y,z size.
areas
EllipsoidTag
maybe this?
something like <player.location.above[1.2].to_ellipsoid[3.8,3.8,3.8]>
or their .eye_location if thats what the 1.2 is doing
I think this works. Also requires some more testing but Ill do that soon. Thanks for pointing that tag out!