Jump to content

createObject() - Client-side or server-side?


Recommended Posts

Posted

Guys, let's suppose: I'm creating a RPG. In my RPG I'll create many objects like food tents (hot-dogs, ice-cream), chairs and tables, trees, etc. Just to "complete" the map, creating squares, gardens, etc. Maybe I also wanna create some markers, for example, to create a car shop (everybody will can see and enter in marker).

What is most recommended: create using client-sided or server-sided?

Posted

If you create object on server side - synced for all players. If you create on client side - synced only for local player.

Posted
for example, to create a car shop (everybody will can see and enter in marker).

you have already answered your question.

don't worry, server won't be overloaded

Posted

But I can create a client-side object to all players. If I do it, I'll being idiot? (Obs: in this case, creating objects that will be visible to all players)

don't worry, server won't be overloaded

Nice to know it. It was my preoccupation.

Posted

of course, you can create objects on the client-side, but then all will depends on client sync, for example, one player will destroy chair and will be able to walk on the surface where chair stayed. in that case other players will watch as this guy walks through their chairs.

offtop:

what time objects need to be respawned if they are set in the map editor?

  • Moderators
Posted

When you have very much objects, is it not posible for creating an object with a client script, at all posisions eagle? (not vehicle's/peds)

The server is streaming objects form .map to our pc's, why can't we use objects on client side?

Client side scripts can be stolen, but it will reduce lagg. Or does it not?

About destroy able objects, you also have that problem on server side

Posted
Client side scripts can be stolen, but it will reduce lagg. Or does it not?

not so much as you think

and what do you mean by saying "stolen"? who needs your scripts? :lol:

  • Moderators
Posted

It is not funny to laugh about my scripts.

and whe are talking about scripting maps on client side. Not about just scripts.

Who need my scripts? Well stealth gta.ru should need my scripts, but they don't get them. xD

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