#How do i get all players besides myself
45 messages · Page 1 of 1 (latest)
Use the Get All Players chip then remove the local player from the list
i tried that
Save Get All Players into a List<Player> Variable
Get the local players index in the List<Player> Variable via List Get First Index Of
Use List Remove At to remove the local players index from the List<Player> Variable
literally tried that
idk what i did wrong
well you clearly litterally didnt
You must’ve done it wrong
Oh is there not a chip to remove an item from a list?
ig not
You cannot remove items from read only lists, like Get All Players
What you can do is save Get All Players into a List<Player> Variable, and then remove the local player from that List<Player> Variable
List Remove At + List Get First Index Of
Yes, it will change the list stored inside the variable
Huh ig I just always assumed List Remove Item was a chip
ok lemme try that thx
yea so did i lol
But that makes sense
List Add will add an item to the end of a list variable
List Insert will insert an item at a specified index in a variable
List Set Element will set the value of a specified index in a variable
List Remove At Last will remove the last element in a variable
List Remove At will remove the item at the specified index in a variable
This will need to update/rerun everytime a Player Joins or a Player Leaves btw
not really
You only really need to do it every time you need to check
Fair enough
Hey you want to help on a maze generation algorithm with me and Jehuty? @storm imp
Nice
yup
I need to make a better A* pathfinding before doing that, its just a pain
it only changes when someone dies so that wont be a problem
Ah, right. I mean, the Get Closest chip could be really helpful
But it is Beta
Get Closest isnt really that useful
It helps me get the closest node to AI and closest node to Player, which is useful for pathfinding towards players
The main issue is speed and number of nodes
truth is, 64 nodes just doesnt cut it most the time
Do you want to see the Circuits to my pathfinder then? See if that can give you some ideas, if any?
Does your nodes use objects or lists of vector3's?
Objects, but I'm planning on changing it
my main issue is number of nodes as positions, I dont want nodes as objects
You could use 2 String Variables with a String Split. When the first String Varibale is about to hit the 512 character limit, it switches to the next String Variable.