#Getting the blood game object
1 messages · Page 1 of 1 (latest)
please give support rather than saying stuff like this
also this wont help either because of licensing issues
You can still copy the method like searching through network client prefabs with a target game object name
There’s a reason there’s a troll emoji
Okay, so I assume that there is not a tag called blood, thanks tho
Go through every prefab
And you can get that from there
If check for name, if you don't know name print every prefab and searc for it, at least that's how I would do it
Nem lett volna egyszerűbb rám írni

Nem, mert 2 évtized mire válaszolsz
Nuh uh
It aint working, because I looked up how the RA does it, and also found that there is this decal component and I tried finding all the gameobjects that has the decal component everytime, even if there were blood stains all over the floor, the length of the list was 0 so I didnt catch any

But its client side I reckon thats why I didnt get any of that objects or idk what I did wrong
Hub.GetComponent<BloodDrawer>().PlaceUnderneath(pos, amount);
OR
ImpactEffectsModule::ServerSendImpactDecal(hit, origin, decalType)
this will do better i think
rather than the first
I think the first not even work since you place that as a server (?)
I just want to get the blood gameobject that I see on the floor or on the wall but that doesnt really matters where it is, I simply want to get all of it and do stuff to it
Id tried this before ```var decals = GameObject.FindObjectsByType<Decal>(FindObjectsSortMode.None);
bloods and decals isclient sided
So there is no possible way for me to get them or delete them on all the clients?
you can send delete message
check the BloodCommand
new DecalCleanupMessage(DecalPoolType.Blood, amount).SendToAuthenticated();
Yes, I have already seen that, but I just want to grab all of them and put them in a list or some kind, but if its not possible no worries you ve already helped me so much
sadly no, all of them are handled by the client
Make it work by it being handled by the server in the next update, preciate it.
But wait, what if I delete the blood the game spawns on the client and replace it right after with ImpactEffects something ske that it d be on the server and then I can get it by just finding gameobjects by something?
ImpactEffectsModule::ServerSendImpactDecal does not actually spawn it tells the client to spawn it
Oh ok then, thanks!
And not even that exiled prefab helper would be able to save me?
dont think so, its not a shared one to server
It's CC Attribution so long as you give credit to where you took the code from it's fine
Make a LabApi issue in GitHub and pray for them to implement it in Megapatch III 
there way you log all fucking decal shot
you make that a list and after that you can remove all of them and respawn them all except the one you don't wan't
that the theory
nope you can see PrefabHelper thing with the Enum we have as Prefabs
you could see everything you could spawn in it
Thats genius man, idk what else to say
Lol
That the only way if you really want it