起点和终点坐标
起点local.start位置是local.player的Bip01 Head--(俺叫骨格图上传过)
local.groundtarget.origin位置是是local.player武器准心位置
这2个点掌握对编写MOD有很大的想象空间,这是代码公布
比方local.THING运动到武器准心位置,例
local.THING moveto local.groundtarget.origin
local.groundtarget = spawn script_origin local.groundspot_target = spawn script_origin local.fwd_vec = angles_toforward local.player.viewangles local.start = local.player gettagposition "Bip01 Head" local.range = 10240 local.groundtarget.origin = trace (local.start + local.fwd_vec * 64) (local.start + local.fwd_vec * local.range ) 0
0 评论
Recommended Comments
没有要显示的评论。
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new account登录
Already have an account? Sign in here.
现在登录