Author Topic: Ghosting and setcontrolobject  (Read 804 times)

Hi, Im trying to get ghosting to initiate for a controlled object. I looked into scopetoclient but I didn't get any results from
Code: [Select]
%robot.scopetoclient(%controllerClient);Probably not using it correctly.
This guy seems to have the same issue i was having but he wasn't clear about how it was fixed
 Any thoughts?
« Last Edit: January 14, 2015, 10:30:26 PM by Str4tofortress »

A simple fix might be to use %robot.setScopeAlways(true);.

edit: I see that this was already suggested in the GG thread. It works, but it might not be optimal. I'm not really sure how he fixed ::scopeToClient.
« Last Edit: January 14, 2015, 10:35:31 PM by Greek2me »

Alright little update, the %robot I'm controlling is a dynamically created vehicle. In the code itself after creation I tell the player to setcontrolObject(%robot); and setScopeAlways() and ghosting doesn't work.

Now on the same vehicle, if i do /getid and setcontrolobject(robotID) + setScopeAlways() in evals. ghosting works. wtf....

Heres how im dynamically creating the vehicle


Code: [Select]
%v = new WheeledVehicle()
{
dataBlock = JeepVehicle;
position = %launchTrans;
client = %controller.client;
};
MissionCleanup.add(%v);
        %controller.setControlObject(%v);
%v.setScopeAlways();


Fixed. it has to be %controller.CLIENT.setControlObject(%v); ._. Thanks Greek!
« Last Edit: January 14, 2015, 11:33:02 PM by Str4tofortress »