Home   Help Search Login Register  

Author Topic: Apartment Block "DOM01" - patrol inside and hiding pistols  (Read 2086 times)

0 Members and 1 Guest are viewing this topic.

Offline Vortrog

  • Members
  • *
  • Ski'in, Fish'in, Shoot'in, OFP'in
    • Vortrog's Lair
1. I want to have soviet troops enter and search an apartment block (Resistance Building) from bottom to top, one a group of players use it for a base.
Anyone have any ideas?
2. Also, placing players in a start position in one of the rooms. If O try to use a basic placement, I get put on the roof.
And lastly, I want to place a handgun or 2 inside the buildings (in the bedroom or kitchen) on the ground. Firstly, I dont know how to do this without using a crate. Id prefer it just be laying on the ground OR be available like the AddWeapon command to an area (or use a trigger I guess in the section of the building with a 1m radius)
What are the weapon names for pistols and ammo? I can only guess that a CZ75 pistol is called a CZ75, but Id much prefer a Uzi.

please help

Vortrog

Kaliyuga

  • Guest
Re:Apartment Block "DOM01" - patrol inside and hiding pistols
« Reply #1 on: 17 Sep 2002, 09:22:11 »
Well.. lets see here...

If you place a unit's waypoint directly on the name of the building then you will get another option called building position... all the positions are listed... trial and error will get you the right one for the job you want.... Once you get one waypoint on the building... you can hold shift down to get back to the building name and place multiple waypoints this way. (now when you place the initial waypoint it must be directly on the name, you'll know if you can't seperate the waypoint from the building)

This should answer #1 and part of #2.. as you can't really make someone start there.. but you can give them the position in the house as their initial waypoint and once the mission starts they will head for that spot....

The uzi is       "uzi" and "uzimag"  for weapon and ammo

and you can place objects using the setpos command....


this setpos [getpos this select 0, getpos this select 1,x]  

x= meters above ground   so experiment until you get the right number ;)


Gameer_77

  • Guest
Re:Apartment Block "DOM01" - patrol inside and hiding pistols
« Reply #2 on: 17 Sep 2002, 10:10:34 »
To make an empty weapon:


Use createVehicle to create an object of following type:

"SecondaryWeaponHolder" to hold secondary weapon (LAW...)
"WeaponHolder" to hold primary weapon, handgun or magazine

This holder is empty by default and it acts like an ammo crate - you can use addMagazineCargo and addWeaponCargo functions to add weapon or magazine to it.


 8)PEACE

Offline Vortrog

  • Members
  • *
  • Ski'in, Fish'in, Shoot'in, OFP'in
    • Vortrog's Lair
Re:Apartment Block "DOM01" - patrol inside and hiding pistols
« Reply #3 on: 20 Sep 2002, 00:02:31 »
Ill give these a go over the weekend. Thanks heaps for the suggestions.
Still a bit miffed about the fact I can setposition for the Player controlled players.

Vortrog

Offline Vortrog

  • Members
  • *
  • Ski'in, Fish'in, Shoot'in, OFP'in
    • Vortrog's Lair
Re:Apartment Block "DOM01" - patrol inside and hiding pistols
« Reply #4 on: 23 Sep 2002, 06:27:39 »
I was able to locate all my players within the buildings using the 'this setpos [x,y,z] command in their init feilds. Mind you , it took me 15 mins to have a dummy player run to every position and record the positions first (using the showcoords.sqs script which is a lifesaver!)...but I did have to guess the height above ground because it is always 0 when standing on a surface.
As for hiding pistols, I couldnt work out how to create an object 'Uzi' and setpos it to a location. the creatvehicle command, I cant find anywhere, so maybe Gameer77 can elaborate for me.
In the interim, I created a barrel and placed it just under the floorboards of the level 1 of the unit block with a cz75 in it. when you get to the unit, the option to pick it up comes up, which I guess is better than seeing it on the deck (hell, the guards would have seized it)
As for patrolling the building. Ive tried the waypoint thing in the buildings. the problem is that I created the building using a west unit, and text edited the mission.sqs to change the unit to a building. If you get another unit to enter the building, you only get one position to travel to, and not all the others...so Ill have to create manual waypoints using setpos. If it was a fixed building on the map, that method would work, but not here.
Cheers again