Jump to content

Safe Area


Coffey

Recommended Posts

Hey. I want to make an area, when you enter there, you are unable to attack other players.

So I really dont know anything about lua, but I know how should I do this.

First I should make a bool variable, to set the player isPlayerIntheSafeArea or something like that. So when the guy is in the area, it gives him a message, and when he tries to attack (with weapon or melee) you cant do anything. How can I do that?

Thanks for help.

Link to comment

Stand in the bottom right of the area you want the col-shape then press "P" to open your admins panel and note down your "X", "Y" and "Z" co-ordinates, that'd be the first step of making a col-shape.

You can use col-Circles, col-Cuboids, etc. I've been using colCuboid, works fine so:

createColCuboid( x, y, z, length, width, height)

You can complete the rest now ;)

Link to comment

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

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...