Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Placing units in buildings?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Placing units in buildings? (Read 1235 times)
0 Members and 1 Guest are viewing this topic.
pexmo
Members
I'm a llama!
Placing units in buildings?
«
on:
13 Dec 2004, 08:32:20 »
I want to put a enemy soldier in a window to snipe at the players. i have only got this working if the house has a hole in the roof just above the spot i want the sniper to be at. Can i get a unit to spawn inside a regular house?
Logged
greg147
Contributing Member
Re:Placing units in buildings?
«
Reply #1 on:
13 Dec 2004, 08:34:51 »
You can place the sniper on the grey square of the building, and put
this setpos [(GetPos this select 0), (GetPos this select 1), 13]
and change the 13 higher or lower until the player is at the right height to be looking out of the window
Logged
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB
Blip
Members
...Old OFP FART...
Re:Placing units in buildings?
«
Reply #2 on:
13 Dec 2004, 09:09:04 »
this setpos ((object XXXXX) buildingPos 1)
xxxxx is where you put the id #
buildingPos # : There are usually multiple places a unit can be placed in the building so try changing the number.
Later,
Blip
Logged
...NIGHT WALKER....
The-Architect
Former Staff
Bite my shiny metal...
Re:Placing units in buildings?
«
Reply #3 on:
13 Dec 2004, 11:05:01 »
Placing units in buildings can be very annoying.
AI can move through walls so be very careful where you place them.
The last thing a playerwants to see is an AK pointing at them through a wall. The AI can shoot you but you can't shoot the AI. Very annoying.
Logged
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."
bored_onion
Guest
Re:Placing units in buildings?
«
Reply #4 on:
13 Dec 2004, 17:53:23 »
disableai "move" is a useful command to stop them playing around in there
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Placing units in buildings?
Top of page