How to call an RPC from a child object?

Options
My gun script is currently on the player and I want to add weapon switching. I don't want to add multiple gun scripts for the player because I can't expand that for pickups, and I can't parent the gun with the script already on it to the player, as the script needs RPC's to be called, and I can only call those RPC's from the actual player itself. Is there any way I can get around this?

Answers

  • And don't flag this as a duplicate. I accidentally accepted a bump for the last question. Doing that just proves that you don't answer to me if youre willing to flag this as a duplicate of a question you refuse to answer
  • Bump
  • PB_Xander
    Options
    The question itself is very unclear, especially this part:
    I don't want to add multiple gun scripts for the player because I can't expand that for pickups, and I can't parent the gun with the script already on it to the player

    Could you explain please?
    More info = better chance of help.