Forum

> > CS2D > Scripts > how can i use button via lua?
Forums overviewCS2D overview Scripts overviewLog in to reply

English how can i use button via lua?

4 replies
To the start Previous 1 Next To the start

old Re: how can i use button via lua?

Yates
Reviewer Off Offline

Quote
@user Infinite Rain: He wants to use a button that's triggered by Lua. For ex. Func_button x = 7 and y = 13 then it triggers something:
1
2
3
4
5
6
addhook("usebutton","Lua_Buttons")
function Lua_Buttons(x,y)
	if (x== and y==) then
		parse("trigger ")
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview