Jump to content

Storing data in game


marax27

Recommended Posts

Consider that AI turret defending your base.

 

Which client does the script run on?

What does it do when you log off?

Does the script actually run on the attackers PC?

What happens when you have two attackers?

Link to comment
Share on other sites

Consider that AI turret defending your base.

 

Which client does the script run on?

What does it do when you log off?

Does the script actually run on the attackers PC?

What happens when you have two attackers?

And what if the attackers hacks and changes the output of your script to make you loose?

 

These are flaws. That is why scripts should be either run on server or distinct from in game objects so you can setup your own server to manage that (raspberry pi or something like that).

Link to comment
Share on other sites

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
×
×
  • Create New...