简化
简化
一个箱子的代码
local.crate = spawn script_model local.crate model "static/indycrate.tik" local.crate.origin = ( 1 1 -9999 ) local.crate solid
可以这样
local.c = spawn script_model local.c model "static/indycrate.tik" local.c.origin = ( 1 1 -9999 ) local.c solid
也可以这样
local.object = spawn script_model "targetname" "c" $c model "static/indycrate.tik" $c.origin = ( 1 1 -9999 ) $c solid
还有的就不写了....
要是让它随机生成100个不同位置箱子的代码,
1.要有一个计数器
2.3个随机的函数(X.Y.Z)
3.>=100 循环停止
呵呵,留给你们想了....
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.
现在登录