Jump to content

Zombie proof


dewu

Recommended Posts

Hi guys.

I have that script:

  
RestricLocation["location1"] = {-212.60000610352,1451.5,95.800003051758} 
RestricLocation["location2"] = {-277.20001220703,1509.5,75} 
  
function ResourceStart( ) 
    setElementData (RestricLocation, "zombieProof", true) 
end 
  

I don't know why, it's not working and zombies can enter proof area ;/

Link to comment

So if I do that..

  
RestricLocation["location1"] = {-212.60000610352,1451.5,95.800003051758} 
RestricLocation["location2"] = {-277.20001220703,1509.5,75} 
setElementData (RestricLocation, "zombieProof", true) 
  

it will work?

@EDIT

Okay, it works ;) Thanks.

Link to comment

Looks like I didn't read it correctly then, that also explains the illusion of how the script seems to work @dewu, tables are also elements, so you may be able to assign a value to them, however finding that value when it's needed would be more complicated, since you still have to use a solution like what Saml1er wrote above.

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...