• How do I make it so a certain job freezes when looked at
    1 replies, posted
I've made code to freeze a player that is using a certain job. In this case a Weeping Angel. But it does not work. I'm also wondering how I would make it so when they blink the angel can move. function blink()     if(ply:GetEyeTrace() && ply:Team() == TEAM_WEEPINGANGEL) then         ply:Freeze     end end
Do you even understand Lua to begin with? You're asking for an entire feature explanation, this section is for fine details which are causing you trouble, not for the manifestation of your ideas. Notes: You can use a GM/Think hook to constantly run checks. the entity GetEyeTrace method returns a table which contains a bunch of pieces of data, so to access the entity that the entity is pointing at, you have to type "ply:GetEyeTrace().Entity", here's the full list TraceResult Structure The function you made doesn't even receive an argument, how do you expect to get "ply"?
Sorry, you need to Log In to post a reply to this thread.