-- LUA Script - precede every function and global member with lowercase name of script + '_main' local U = require "scriptbank\\utillib" local rad = math.rad function push_init( e ) Include( "utillib.lua" ) end local timer = nil function push_main( e ) if timer == nil then timer = g_Time end if g_Time > timer and g_KeyPressW == 1 then local pxp, pyp, pzp, pya = g_PlayerPosX, g_PlayerPosY - 10, g_PlayerPosZ, g_PlayerAngY local rayX, _, rayZ = U.Rotate3D ( 0, 0, 50, 0, rad( pya ), 0 ) PhysicsRayCast( pxp, pyp, pzp, pxp + rayX, pyp, pzp + rayZ, 500 ) timer = g_Time + 50 end end