Author Topic: Auto pilot  (Read 1117 times)

I think we should be able to set vehicles on autopilot to go to specific locations or follow specific players!
Support?


« Last Edit: December 30, 2011, 01:17:27 PM by comedy101experiments »

I made one months ago. Dont even ask me to release it ether.

I made one months ago. Dont even ask me to release it ether.
"I am someone who can't make bread and i really need it."
"I have baked this bread with my own hands, look at it, smell it, hear it, but you cannot taste it because i am going to eat it while you know that i have this and you don't."

I made one months ago. Dont even ask me to release it ether.

Is it necessary to state that you have it when you're too selfish to give it?

"I am someone who can't make bread and i really need it."
"I have baked this bread with my own hands, look at it, smell it, hear it, but you cannot taste it because i am going to eat it while you know that i have this and you don't."
aw now i am sad i wanted bread

It would be nice if I could set a helicopter to hover mode without it having to go lower.

It would be nice if I could set a helicopter to hover mode without it having to go lower.
Interesting...

Server:
Code: [Select]
function ServercmdAutopilotOn(%Client)
{
CommandToClient(%client, AutoPilotOn);
MessageClient(%Client, "Auto Pilot on");
}

function ServercmdAutopilotOff(%Client)
{
CommandToClient(%client, AutoPilotOff);
MessageClient(%Client, "Auto Pilot off");
}

Client:
Code: [Select]
function ClientCmdAutoPilotOn()
{
MoveForward(1);
}

function ClientCmdAutoPilotoff()
{
MoveForward(0);
}

does that just make you go forward


-snip-
Because doing just a clientside bind isn't good enough, you need to add unneeded serverside code!
Plus you're doing it wrong, you need single quotes around the AutoPilotOn/Off in the commandtoclient
Also your inconsistency with capitalization annoys me.




Something like this you'd want to do serverside, and I don't believe there's really a good way to force a vehicle to move in a specific direction, other than manually rotating it and constantly applying small impulses.