Hi,
i use several actors in a networked multi-user application, the actors are defined as follows:
_entity = pl->CreateEntity ("player", bl, "player_behave",
"pcdefaultcamera",
"pcmesh",
"pclinearmovement",
"pcactormove",
"pccommandinput",
"pcinventory",
CEL_PROPCLASS_END);
One of these actors is controlled locally, the other ones are controled remote by other players in the network.
I don't know how to couple the camera and input to 1 particular actor in the scene.
For the input part i can check in the SendMessage method of the "PlayerBehavior class" to only update the actor position if the actor is "active". Not very elegant but it should work. A nicer solution would be to disable the "pccommandinput" propertyclass so that no kb-events will be sent to this entity. Can this be done?
The camera is something that is now only controlled by the cel-part, i can switch between the several camera modes,using the "m" keybinding of the pcdefaultcamera propertyclass, i didn't have to code anything for this (which is great). I don't know however how to connect my view to 1 particular camera (belonging 1 particular actor).
Does somebody knows how to do this?
Thanks