Author Topic: Controlling a bot?  (Read 1202 times)

Sorry if I posted in the wrong section, but I want to know what the console command is to control a bot from a named bot hole. For example, if I named a brick "spawn," if it was a vehicle spawn I would just do findclientbyname(Username).setcontrolobject(_spawn.vehicle);. But what would I do do with a named bot hole: findclientbyname(Username).setcontrolobject(What goes here?);?

findClientByName("Name").setControlObject(_brickName.hBot);


Unlocked because Xalos requested.

Unlocked because Xalos requested.
Xalos asked you to unlock it because coding help topics should not be locked
Other people may have more to contribute to the discussion

ID.setControlObject(vID); - The vID must be a playerobject for it to work.
Yes, I know this was here:
findClientByName("Name").setControlObject(_brickName.hBot);

But for it, you can use the code I have as well, if you use it on other objects.

The vID must be a playerobject for it to work.
It can also be a vehicle.

It can also be a vehicle.

Or a camera. Or a whole bunch of other classes.