#Getting the blood game object

1 messages · Page 1 of 1 (latest)

quiet solar
#

I would like to know how I can get the blood decal GameObject. Does it have a tag by default?
Thanks!

ember sierra
#

Switch to exiled and use PrefabHelper TrolleyDeath

#

Or just copy paste prefab helper from exiled

barren gorge
barren gorge
ember sierra
#

You can still copy the method like searching through network client prefabs with a target game object name

ember sierra
quiet solar
fluid canyon
#

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

fluid canyon
quiet solar
quiet solar
fluid canyon
quiet solar
#

But its client side I reckon thats why I didnt get any of that objects or idk what I did wrong

low escarp
#

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 (?)

quiet solar
#

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);

low escarp
#

bloods and decals isclient sided

quiet solar
low escarp
#

you can send delete message

#

check the BloodCommand

#

new DecalCleanupMessage(DecalPoolType.Blood, amount).SendToAuthenticated();

quiet solar
#

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

low escarp
#

sadly no, all of them are handled by the client

quiet solar
#

Make it work by it being handled by the server in the next update, preciate it.ClassDClueless

#

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?

low escarp
#

ImpactEffectsModule::ServerSendImpactDecal does not actually spawn it tells the client to spawn it

quiet solar
#

Oh ok then, thanks!

quiet solar
low escarp
#

dont think so, its not a shared one to server

vivid token
fluid canyon
pallid jewel
#

that the theory

pallid jewel
#

you could see everything you could spawn in it

pallid jewel
#

That the only way if you really want it