Jump to content

88 station

  • entries
    131
  • 评论
    3
  • 查看
    659,330

简化


moh8888

853 查看

简化

一个箱子的代码

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

没有要显示的评论。

访客
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 创建新的...