Forum

> > CS2D > Scripts > Check if player is in a buy-zone
Forums overviewCS2D overview Scripts overviewLog in to reply

English Check if player is in a buy-zone

1 reply
To the start Previous 1 Next To the start

old Check if player is in a buy-zone

Mami Tomoe
User Off Offline

Quote
How can I check, through Lua, if a player is within their buy zone?

I'm trying to create a custom buy menu, and I want to prevent item purchases outside the bounds of the spawn.

I know I can loop through all the spawn entities and start from there, but that'll be quite inefficient and take a while to implement.
Does anyone have a better idea?

Edit: I have located cs2d lua cmd inentityzone!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview