加一条线的方法
加一条线
这是代码
level.beam[0] = spawn func_beam origin ( 392 958 23) endpoint ( 392 1027 23)
level.beam[0] maxoffset 0
level.beam[0] tileshader "textures/general_industrial/cable_wire"
level.beam[0] scale .5
level.beam[0] doactivate
上面的数字是线的开始点坐标和结束点坐标添上即可
"textures/general_industrial/cable_wire"是线的材质贴图自已选吧
level.beam[0] scale .5是绳子的粗细
level.beam[0] maxoffset 0是绳子的抖晃程度 0是不晃,1以上抖晃程度增大
样本看图
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.
现在登录