I put everything together right but what do the wires going out of the picture go to?
They go to the damage system.
Hereâs the simplest version of it:
HP is a HUD constant and it stores playerâs HP. It subtracts damage from your HP and checks if your HP is below 0, unequips everything, respawns you in the position of the object with spawnpoint tag and fills your HP
IMPORTANT: this system will not work properly if you use Game Rules chip for pvp
So if I set that up then I basically have a custom PvP system and the weapons should work? (Damage other players but canât damage player holding it)
Yep, itâs the simplest pvp system
Thank you so much man. Just ONE more question; what is the small HP chip at the bottom of the picture
Itâs a HUD constant, configure it and set as primary, so it looks like hp bar
I cannot seem to figure out the Event Receiver with the Hit event. It just doesnât work for whatever reason.
What exactly doesnât work?
I have everything set up right but the custom system isnât working. I donât have the game chip either. I donât know what to do
Configure Player definition board and toggle active
It is toggled active. Iâve checked everything and there are so many flaws. The HP bar doesnât show up for other players, you can still move when you die, and it just doesnât work
This system enables hp bar when you join. Configure HUD constant and set default value to 100. You have to create an object, tag it spawnpoint and place it where you want spawn point to be, when you die, you get teleported there
players can still move around and donât respawn. I set everything up right
To fix the issue where the Projectile Launcher doesnât shoot straight at the crosshair in Rec Room, you can use a raycast to align the projectileâs direction with the crosshair. Hereâs a step-by-step guide:
1 Raycast from the Camera:
- Use a
Raycast
chip to start a raycast from your head (camera) pointing directly forward. This will help you determine where the crosshair is aiming.
2 Calculate the Direction:
- Use the
Get Position
chip to get the position where the raycast hits. - Subtract the position of the Projectile Launcher from the hit position to get the direction vector.
3 Set the Projectile Direction:
- Use the
Normalize
chip to normalize the direction vector. - Use the
Set Direction
chip to set the firing direction of the Projectile Launcher.