Home   Help Search Login Register  

Author Topic: Tower Guards  (Read 1143 times)

0 Members and 1 Guest are viewing this topic.

Offline windquest

  • Members
  • *
  • I'm a llama!
Tower Guards
« on: 31 Dec 2011, 16:52:25 »
I have the MAP FACT watch tower addons. How do I get a soldier to stand guard in the tower and not on the ground under it?

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: Tower Guards
« Reply #1 on: 31 Dec 2011, 17:05:41 »
Put the following code in the soldier's Init line:

Code: [Select]
this setpos [getpos this select 0, getpos this select 1, +7]
The '7' represents the height you want the soldier to be at. You can change this number to any value. I think for the towers in the mapfact addon you'll need the height set at 7 or 8.

Hope this helps

Gruntage
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba