How would I find the player object of whoever spawned a certain prop?
You need to use a prop protection system
It would be:
[code]ent:GetNWEntity("owner")
// Would return the player entity
[/code]
Could I use ent:SetNWEntity("owner", ply) in the entity post-spawn hook to set this? if so, thanks!
Yup
Isnt there a SetOwner() function?
just do ent:SetOwner(ply)
[editline]10:40AM[/editline]
or use ent:GetOwner() if you need to get it.
[QUOTE=Kalik 911;16858095]Isnt there a SetOwner() function?
just do ent:SetOwner(ply)
[editline]10:40AM[/editline]
or use ent:GetOwner() if you need to get it.[/QUOTE]
I tried that earlier but it caused odd glitches between the prop and it's owner, acting like the prop didn't exist.
I've solved it anyway thanks to the help above.
Sorry, you need to Log In to post a reply to this thread.