Home   Help Search Login Register  

Author Topic: setDir and created units ?  (Read 1815 times)

0 Members and 1 Guest are viewing this topic.

Offline sharkattack

  • Former Staff
  • ****
setDir and created units ?
« on: 10 Feb 2007, 14:45:29 »
hi  ive almost finished a script to create a manned and flying harrier ..
i have no probs giving it waypoints or getting the pilot to control it however one thing has me stumped .. the harrier is always facing north 0 degrees  ive played with setDir   but with no luck ..

harrier sqs .
Code: [Select]
veh = createVehicle ["AV8B", position startpoint, [], 0, "FLY"];
"SoldierWPilot" createUnit [position veh, group red,"this moveindriver veh"]

harrier  is created at logic named startpoint  but it always faces north .. harrier is grouped with logic unit called red it follows the logics waypoints no problems .. any suggestions
"HOLY SARDINE" - see Shark-Attack meet his match

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: setDir and created units ?
« Reply #1 on: 10 Feb 2007, 14:51:42 »
i take it you've tried

Code: [Select]
veh = createVehicle ["AV8B", position startpoint, [], 0, "FLY"];
"SoldierWPilot" createUnit [position veh, group red,"this moveindriver veh; veh setdir whatever"];

?

Offline sharkattack

  • Former Staff
  • ****
Re: setDir and created units ?
« Reply #2 on: 10 Feb 2007, 14:54:40 »
going to now mate .. thanx     :good:
*edit
works a treat thanx a lot bedges  i also found that flyinheight can set the sameway  thanx again mate ..     

SOLVED                 
"HOLY SARDINE" - see Shark-Attack meet his match