Home   Help Search Login Register  

Author Topic: Placing MG's and snipers in buildings  (Read 401 times)

0 Members and 1 Guest are viewing this topic.

PFC_Mike

  • Guest
Placing MG's and snipers in buildings
« on: 04 May 2003, 07:07:02 »
It's simple enough to place a unit in a building using SetPos, but how do I get them to stay standing up? I put an I44 82nd Sniper in a church tower (saving private Ryan style) but he keeps going prone. How can I prevent him from doing so but still get him to shoot?

Also, I tried to put an I44 .30 cal tripod MG in a building. It's designed to be used prone so I put it on top of several "pallet A" objects. The only problem is that when the AI shoots at the MG, they hit the pallets, and they start bouncing around and fly up through the ceiling.

Kaliyuga

  • Guest
Re:Placing MG's and snipers in buildings
« Reply #1 on: 04 May 2003, 07:11:26 »
1)   use this in the soldiers init field along with the setpos stuff:

this setunitpos "up"  

this will make the dood always stand up...  you can if you so desire.. make him be able to choose again by using:

this setunitpos "auto"


2) yep.. those small objects don't have much mass to em.. so when they get shot.. they tend to go flyin out into the wild blue yonder ;)

if you really wanted to keep em put you could make a repeating trigger that  setpositions the pallets

this would update itself every few seconds and make sure those pallets stayed put ;)

:toocool: