Home   Help Search Login Register  

Author Topic: Unit wont move. Why?  (Read 573 times)

0 Members and 1 Guest are viewing this topic.

Serial Killer

  • Guest
Unit wont move. Why?
« on: 08 Mar 2005, 11:42:33 »
I've made this script..
Code: [Select]
_JC Move Position _Tent
When I try to activate it, that 'JC' named unit wont move to that Tent's position. I have tryed to remove those _ markers, but nothing happenes. Can anyone help me?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Unit wont move. Why?
« Reply #1 on: 08 Mar 2005, 11:47:02 »
i believe the syntax is doMove...

Serial Killer

  • Guest
Re:Unit wont move. Why?
« Reply #2 on: 08 Mar 2005, 12:21:17 »
I'll try..

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Unit wont move. Why?
« Reply #3 on: 08 Mar 2005, 12:22:16 »
Either move or doMove should work.  It is the use of position that puzzles me.  I always use getPos and that works, but from the comref it looks like position should work also.  Maybe an OFP feature.  Try:


_JC Move getPos _Tent  
or
_JC doMove getPos _Tent  

Bye the way - I just noticed your reference to markers.

If _tent is a marker name then you should use

getMarkerPos


« Last Edit: 08 Mar 2005, 12:24:18 by THobson »

Serial Killer

  • Guest
Re:Unit wont move. Why?
« Reply #4 on: 08 Mar 2005, 12:30:39 »
Thanks, THobson! It's working now. Next question.. How can I set A.I.'s speed mode to slowest? I mean Limited.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Unit wont move. Why?
« Reply #5 on: 08 Mar 2005, 12:33:29 »
group setSpeedMode mode

Operand types:
group: Object or Group
mode: String
Type of returned value:
Nothing
Description:
Set group speed mode. Mode may be one of: "LIMITED" (half speed),"NORMAL" (full speed, maintain formation),"FULL" (do not wait for any other units in formation).

Example:
groupOne setSpeedMode "LIMITED"

« Last Edit: 08 Mar 2005, 12:34:22 by THobson »

Serial Killer

  • Guest
Re:Unit wont move. Why?
« Reply #6 on: 08 Mar 2005, 12:54:39 »
Thank you! :)