Ok so I’m not quite sure how to name this thread but here goes nothing, I’m from the world of UDK so this is a bit new to me but were just a 2 people team so unreal is too time consuming because we are just artists and the unrealscript is too complicated for what we want. But in Unity I dont know how this works, i have a first person weapon with arms, and a third person weapon that is only the gun, and a character that is rigged. For the first person view you only see the arms with the gun but when another player sees you (It’s a multiplayer game) i don’t want to see the player controller with floating arms, i want to see the rigged character with my weapon, in unreal there is a way to script this, theres a weapon script for the first person view, and an attachment script for the third person view, ad in the character script you tell where the weapon goes on the mesh. How would I do that in Unity. Thanks for your time .
Create 2 prefabs, one with the arms gun and one with the full character. When you spawn the localplayer you spawn the localplayer prefab. For remote players you spawn a full character prefab
Ok thanks I’ll try that but just in case i need some more help, is there a tutorial for this, thanks a lot mate.
Not much to it, Instantiate is the command to spawn prefabs. Create 2 public Transform variables and drag your prefabs in them in the inspector on the slots. Then in script just instantiate the prefab you need. If you look in the script reference i’m sure there is an example.
Ok thanks a lot i’ll try that later I’m a bit busy right now
It’s been a long time since i posted here but i’ve got a question concerning this, for example, i have my 2 player prefeabs one for the local player and one for the remote player but if i want the two to act the same way, animations and such i need to apply the same script to the two prefabs right? like r for reload, right click to aim etc. Or is there a way to only have one script with everything in it.
thanks a lot
Vincent