Say I wanted to create a ClientProp in a player’s exact location and position.
If this sets the position of it (and the color and model):
concommand.Add( 'spawnpointlessplayer', function(ply) local fake = ents.CreateClientProp() fake:SetPos(ply:GetPos()) fake:SetColor(ply:GetColor()) fake:SetModel(ply:GetModel()) fake:Spawn() end )
Then how would I set the rotation of it? Doing something like fake:SetEyePos(ply:GetAimVector()) doesn’t work, and fake:SetAngles(ply:GetAngles()) doesn’t seem to do anything.
This isn’t for some odd thing like a player death hook or something by the way-it’s actually for a recording addon I’m trying to make that uses client props to replay the recorded frames.