bin mir nicht 100% sicher aber probiere mal (ist der name der türen tr ??):
Code:
function onSecondaryAttack( )
local vPos = _PlayerGetShootPos( Owner );
local vAng = _PlayerGetShootAng( Owner );
_TraceLine( vPos, vAng, 110, Owner );
if ( _TraceHit() == false ) then
return "";
end
if (_TraceHitWorld() ) then
return "";
end
local tr = _TraceGetEnt();
if ( _EntGetType( tr ) == "prop_dynamic") then
_EntFire( tr,"setanimation",open,0);
end
end
müsste gehen wenn nicht dann vielleicht noch
Code:
function onSecondaryAttack( )
local vPos = _PlayerGetShootPos( Owner );
local vAng = _PlayerGetShootAng( Owner );
local tr =_EntitiesFindByName("tr");
_TraceLine( vPos, vAng, 110, Owner );
if ( _TraceHit() == false ) then
return "";
end
if (_TraceHitWorld() ) then
return "";
end
local tr = _TraceGetEnt();
if ( _EntGetType( tr ) == "prop_dynamic") then
_EntFire(tr[tr],"setanimation",open,0);
end
end