OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dmakatra on 03 Jan 2003, 12:56:18
-
Hi, and excuse me for the long topic name but itÂ's perfect for the help I need, I think itÂ's about camcreate, but I donÂ't know how.
IÂ've got a house with 3 floors, the player have been pinned down at the 3rd floor, he and his forces (what forces? Darn snipers! ::)) have to fight their way down to the ground and get the hell outta there!
The problem is: I want it to be russian soldiers stand in their way on the 2nd floor(If you put them out direct, they will start at the 3rd floor, killing the player and sink the realistic phase), now, you can make this with a WP, but right after you start, another pinned down US team runs out of the shelled house right next to me, killing the soldiers that should have been started in my house.
Another problem is that I want it look like theres been a fight at the 2nd floor too, with dead corpes and such, but when I put them out, theyÂ'll start at the 3rd floor! And you canÂ't use WPs on dead soldiers right?
Thx in advance.
-
you'll have to fiddle with this thing to get the right height,
this setpos[(getpos this select 0), (getpos this select 1), 10]
the number on the end is the height. good luck
-
A few weeks ago, someone was trying to put a sniper in an attic. He said that a z value of 3 worked well for that, which I think should be the same altitude for a second floor. So, try z=3 for the second floor.
-
this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) -1]
will put units on the bottom floor and maybe
this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +2]
will put soldiers on the second floor not sure though. or try a combo. put
this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) -1]
then in a trigger make it after 1 second they will go
this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +2]
-
sometimes the answer is just oh soo simple.. ;D
forget all the setpos stuff.... ;D
it is an enterable house correct?
so why not just give the guys waypoints.. to move to the predetermined position numbers in the house and for the corpses you can just place a setdammage command in the init of the waypoint.. that way once they get in place they drop over dead.....
If this house is one that is already on the island.. and not one you placed in the editor.. it has position numbers already in it ;)
just place the waypoint directly over the name of the building that appears on its icon you'll know you've done it right if you can no longer seperate the house and the waypoint
now.. when you edit the waypoint you should see a place where you can choose the position number you wish the AI guy to go and stand....
It's all encoded in the P3D ... so why not use it ? ;)
Kaliyuga
-
so why not just give the guys waypoints.. to move to the predetermined position numbers in the house and for the corpses you can just place a setdammage command in the init of the waypoint.. that way once they get in place they drop over dead.....
...
It's all encoded in the P3D ... so why not use it ? ;)
Kaliyuga
He explained why he can't do that. See below.
The problem is: I want it to be russian soldiers stand in their way on the 2nd floor(If you put them out direct, they will start at the 3rd floor, killing the player and sink the realistic phase), now, you can make this with a WP, but right after you start, another pinned down US team runs out of the shelled house right next to me, killing the soldiers that should have been started in my house.
-
Hmm..... make the russkies on the second floor captives for enough time to where they won't get shot by the other team going by outside?
-
Hmm..... make the russkies on the second floor captives for enough time to where they won't get shot by the other team going by outside?
No, because you can see the firefight quite easy from the window.
I have one team allready in the house thanks to the command(thx guys :D)and one team storming in when the pinned down soldiers comes out. They can kill a lot cause they got better AI soldiers, but they are not as many as the russians, so if you donÂ't want as many russians in the house, youÂ'll have to help them as long as they are alive. This will make the mission diffrent from time to time.
-
Topic solved and locked.