ID:294340
 
can anyone give me a binding code to stop a player and a code to a beam that you can set how long it is.
Dear PeinScare,

If you intend to create a game, the first step should be to start here, since this is going to provide you with material to learn the basics of programming (in BYOND).
Try to have a look at the DM guide (and reference), since these will enlighten you past any tutorial you're working on. But don't 'rush through'(browse), like with a comic.
Sometimes you will think that you already know something, when you do not yet know all of the functionality.
Or, you think that something is 'too basic/of no use' for you, but every advanced bit of code is actually built out of these basic (tiresome) parts.

If you still did not manage, your next step would be to use the forum search (of the right forum, in this case Developers), since it is likely that your problem has been discussed before already and there are various replies.

Whenever you are struggling, a developer should use the Developer forum to seek assistance from like-minded community members.

As for your specific problem, in order to prevent a player from initiating movement, you want to override client.Move().
A 'beam' is a rather unspecific description, but since you mention definable length, I'd say that you should look at get_step() in order to gain a reference to a specific tile (and it's contents) in combination with a (for) loop.


Thank you in advance.

Yours,
Schnitzelnagler.