moving aircraft

Come in here to talk about your sky-net style world-destroying super bots!

Moderator: Defcon moderators

spooq
level1
level1
Posts: 10
Joined: Mon Jul 13, 2009 10:56 pm

moving aircraft

Postby spooq » Tue Jul 14, 2009 1:46 am

I set an aircraft on its way with

m_game->SetActionTarget(m_game->GetOwnUnits()[0], -1, m_game->GetLongitude(m_game->GetOwnUnits()[0])+5.0f, m_game->GetLatitude(m_game->GetOwnUnits()[0])-5.0f);

where m_game->GetOwnUnits()[0] is an airfield.

But then none of SetActionTarget(), SetMovementTarget() or SetLandingTarget() have any effect on the plane? It simply flies to the target set by the airfield, then returns home.

EDIT

Noone has ever moved an aircraft?

I'll try a boat, although that means getting involved with the fleet code.

Return to “AI Bots”

Who is online

Users browsing this forum: No registered users and 1 guest