OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Alan34 on 22 Jan 2003, 15:09:33
-
I only make multiplayer maps. I've used both camcreate and createvehicle in several different ways. My question is this; is it better is try to always use CreateVehicle in mp maps? I remember I had to modify the onMapSingleclick Airstrike script found here by replacing camcreate with createvehicle, in order for it to look right on client machines. What are the guidelines for using one or the other command?
-
My limited understanding is this:
camCreate only creates things (such as arty shells) on the host. It should be used in cases where the client doesn't need to create the thing. I can't think of any examples, though, since as I said my understanding is limited on this topic.
createVehicle creates things on the host and all clients. It should be used when the created thing must be seen (or tangible?) on all clients. Your arty example is the best example I know of.
However, the problem with using createVehicle is that it can create a lot of lag if you are creating many (hundreds) of something, such as hundreds of shells simultaneously. So, unless you must have it seen on all clients, use camCreate.