Home   Help Search Login Register  

Author Topic: How do I use setHideBehind  (Read 1305 times)

0 Members and 1 Guest are viewing this topic.

Offline BensTooCool

  • Members
  • *
How do I use setHideBehind
« on: 15 Apr 2007, 18:39:15 »
I'm want to make an AI unit move into a building to a specific hide position. I've looked at the command sethidebehind but I don't know how type it I tried this in the final waypoint acct field
Code: [Select]
unit sethidebehind[objectid, hidepostion]

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: How do I use setHideBehind
« Reply #1 on: 15 Apr 2007, 19:52:50 »
You may start checking these:
setHideBehind

findCover or just use a known object. Not object id, but real object (you may use one of the nearest@@@ functions to get it).

getHideFrom It seems this determines from what you are hidding, so that the unit does really hide with the hidding object between the unit and the enemy.

At this time I cannot add much more info about these  :whistle:
« Last Edit: 06 Jan 2009, 15:44:54 by Planck »

Offline BensTooCool

  • Members
  • *
Re: How do I use setHideBehind
« Reply #2 on: 15 Apr 2007, 21:22:50 »
I did have a look at those but its the syntax that I'm unsure on

Offline WhisperOFP

  • Members
  • *
  • I'm a llama!
Re: How do I use setHideBehind
« Reply #3 on: 18 Apr 2007, 13:37:10 »
I think getHideFrom returns the point where to hide behind an object to be hidden from a unit.
I've always seen [0, 0, 0] returned, so I dropped working on the command, but now I see setHideBehind (this command had skipped under my radar), perhaps in fact getHideFrom returns the position where unit should hide in the hiding object model space.
It doesn't really explains why I always got [0, 0, 0] as result, though