Jump to content
主视角中国

Recommended Posts

Posted

按USE键的触发小程序

thread a_trigger   //执行一个名为a_trigger 的程序

a_trigger:   //名为a_trigger 的程序

local.trig = spawn trigger_use            //按USE键
local.trig.origin = ( 0 0 0 )                   //按USE键位置
local.trig.angles = ( 0 0 0 )
local.trig setsize "-20 -20 -20" "20 20 20"   //按USE键区域20x20x20
local.trig setthtread a_thread    //按USE键然后执行一个事件a_thread
end

a_thread:   //事件a_thread的内容

//<--------------------------这里放你想发生的事情
end[/code]

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.

现在登录
×
×
  • 创建新的...