Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Anyone want to help me on fixing this script? [NOT SOLVED]

Asked by 10 years ago

Basically, it's a first-person death script. Whenever you die, your view is wherever your head is looking. However, it doesn't work. How can I fix this?

01if( CLIENT ) then
02 
03     local function CalcView( pl, origin, angles, fov )
04 
05 
06       local ragdoll = pl:GetRagdollEntity();
07       if( !ragdoll || ragdoll == NULL || !ragdoll:IsValid() ) then return; end
08 
09 
10        local eyes = ragdoll:GetAttachment( ragdoll:LookupAttachment( "eyes" ) );
11 
12 
13         local view = {
14             origin = eyes.Pos,
15             angles = eyes.Ang,
View all 27 lines...

1 answer

Log in to vote
1
Answered by 10 years ago

Errr, this script is a mish mash of Java and Lua. Of course it's not going to work.

0
Oh... :P TheRings0fSaturn 28 — 10y
0
maybe you SHOULDN'T post java in this website. Close this topic, I doubt many people here know how to code in java. Come back when you've converted it to LUA. killerkill29 35 — 10y
Ad

Answer this question