Home   Help Search Login Register  

Author Topic: Unit in a tower  (Read 517 times)

0 Members and 1 Guest are viewing this topic.

timothyj67

  • Guest
Unit in a tower
« on: 09 Aug 2004, 00:14:08 »
Hey how do I add a soldier in a watch tower ?
I need to know the whole scripting and how do I get the coordinates ?
Thanks
email:t_handy@hotmail.com

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Unit in a tower
« Reply #1 on: 09 Aug 2004, 00:22:08 »
Place the loon on top of the tower in the mission editor.    In his init field write:-

this setpos [getPos this select 0, getpos this select 1, 10]

Syntax not guaranteed.   Experiment till you get the right number - it maybe, say,  8 or 12 rather than 10.

Depending on what you want to happen later, you may find some of the following commands useful

setUnitPos
doStop
disableAI
« Last Edit: 09 Aug 2004, 00:23:08 by macguba »
Plenty of reviewed ArmA missions for you to play

Peter haroski

  • Guest
Re:Unit in a tower
« Reply #2 on: 10 Aug 2004, 10:08:45 »
Much easier way, put soldier near the tower, then make a waypoint to the watchtower, then edit the waypoint, there should read "position in house" or something, then put the position two.

AnarCHy

  • Guest
Re:Unit in a tower
« Reply #3 on: 10 Aug 2004, 12:04:32 »
If you are talking about placing yourown towers in OFP, like thru empty-support, then you'd have to do it macca's way:
Quote
I fixt it it was a little off (hehe...im an arse)

this setpos [(getpos this select 0), (getpos this select 1), +N]
where N would be the height in meters you'd want the unit to be in the air.

If you be talkin aboot existin towers den place your unit in the cone part of the tower (normal towers look like a gnome head+hat  :P), and then he will be up in the tower.

hope I helped and didn't offend anybody, as that is what I am liable to do,
AnarCHy

olseric

  • Guest
Re:Unit in a tower
« Reply #4 on: 13 Aug 2004, 11:24:14 »
Make sure you also as use:

soldierOne setUnitPos "Up"

Otherwise, the guy will could lay down in the tower.
« Last Edit: 13 Aug 2004, 11:24:33 by olseric »