![](https://forums.bohemia.net/uploads/set_resources_8/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
![](https://secure.gravatar.com/avatar/3a19a0e86179fe3daa8faf6127275f4d?d=https://forums.bohemia.net/uploads/set_resources_8/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png)
2ndBattalionBard
-
Content Count
22 -
Joined
-
Last visited
-
Medals
Posts posted by 2ndBattalionBard
-
-
Ok, well if this helps, the scene goes like this:
The car is going down the street very fast and hits a bus that pulls out in front of it (this part is done from the driver's prespective, so I control this crash). The the camera goes to the other side of the bus (the left side, the car hits the right side) and shows the resulting destruction from that angle while the pursuing cars swerve around the wreck.
-
The trigger is now working, but there seems to be something wrong with the trigger. Though the car is hitting the bus without stopping, it still sinks into the ground when the trigger activates, so it just sort of slides under the bus and explodes, which isn't the effect I want. I find it odd that something so simple is so difficult to do...
-
Ok, apparently the script is at lest having some effect, because now the car is getting its wheels stuck in the ground...
-
Ok, now I'm confused again... do I put both the script and the [car, bus]exec "crash.sqs" thing into the initialization bar of the car, the bus, or in a trigger?
-
Why are you writing it down?
Just copy and paste from this page
into a new text document.Calling it
"crash.sqs".Then stuff it in yer mission
folder.
Just so you know,you can copy and
paste in the mission editor too.
Just highlight what you want,hit CTRL+C,
then paste it where you need it using CTRL+V.
Saves you a lot of typing in triggers and init fields.
Thank you verrrry much, I'm so used to the two-click copy and paste...
EDIT: Ok, I put the whole thing in, but when I finish it says "Unknown Operator"... what am I doing wrong now?
-
Is there any way to pimort that script without having to remember the whole thing? I'm still pretty new to this, and I tried writing it all down, but it still didn't work. The other trigger script didn't work either.
I need HELP!!
-
Didnt test it but it should work, execute it when you are sure the car is, at least, heading to the bus, even being far away.<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
;crash.sqs
_car = _this select 0
_bus = _this select 1
_speedms = (speed _car) / 3.6
#check
_posc = getPos _car
_posb = getPos _bus
_dir = ((_posb select 0)-(_posc select 0)) atan2 ((_posb select 1)-(_posc select 1))
_car setDir _dir
_car setVelocity [sin(_dir)*_speedms,cos(_dir)*_speedms, -1]
~0.005
?(_car distance _bus > 1): goto "check"
Sooo... is this a trigger or.... what should I put this into?
-
Rounding the corner at 80 miles per hour, the sports car barrels down the city street narrowly missing bystandards and traffic. Suddenly, a loaded bus pulls out in front of him and WHAM! Smoke and debris flying in every direction, the car flipping end over end, the bus rolls over....
This is the kind of scene I was hoping to make, and its what I get when I'm the driver. However, when I leave it up to a computer driver in order to operate a camera (I just set a waypoint through the bus and set speed for full, which I know isn't enough) he successfully bypasses the bus, or at least slows down enough to keep anything from happening outside of a few blown tires. How can I make the driver take his own personal safety out of the equation so he'll fly into the bus and make the awsome crash sequence I'm looking for?
-
Ok, when I put that script into the soldier's "initialization" box, it says "unknown camera operator".
-
Get troutal from this ArmA Movie MakersIts so Easy:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
1- Add A soldier, and then add this script "this exec "camera.sqs".
2- Click Preview.
3- you will see some thing like a cross, that mean you are in a camera.
4- you can move a camera use this Keys: 4,6,8,2,q,z,backespace.
5- use Ctrl to Capture the script .
6- Wanna remove the Cross to get good screen shot, Press
L.
hope that will help, Thanks Â
.
Does this also apply to OFP?
-
I noticed that there are cameras that can be used to focus in on a particular unit, such as rotating around a unit. Is there a way to position any kind of in game camera to catch a certian (stationary) angle?
-
This section isn't for 3rd party addons troubles BTW.If you're having problems with DXDLL, download ChernMOD (Chernobyl Mod) and it installs DXDLL for you, then you can just delete ChernMOD folder and shortcut
Thanks, could you link it? I'm having trouble finding it with Google...
-
I never really noticed any difference, but its still better than just about any other FPS out there
-
I'm using FFUR 2007 and the unit models are great, but I dislike the color of the U.S. uniforms. What good packs are there of similar quality with woodland camo (or both)?
-
I've completly downloaded dxdll and extracted all the files to my OFP directory, but every time I try to play OFP (FFUR 2007) with dxdll a box appears that says "Cannot find dxdll/config.cfg" or something along those lines, and I know I have this file loaded into the directory. What should I do?
-
I noticed that when I am controlling a position in a vehicle, other AI controlled positions don't always work. For instance, I was using the Bradly as the driver. However, I couldn't find any way to get my gunner to fire his weapon. When I switched to the gunner's position, he wouldn't drive. Even when I give the whole group orders to attack a specific target or move to a location, all fully AI controlled vehicles respond except him. What orders should I give to fix this?
-
Does that include UAZs? In my testing it didn't quite work out, though I only did it a couple of times (one of those times was done with police jeeps, I'm not sure if they react in the same way). Thanks for the help
-
Ah, thank you
-
I'm trying to figure out how to create more realistic behaivor with vehicles... I'm trying to create some missions built around road-side ambushes, but I can't figure out how to make occupants leave the vehicles and return fire when the shooting starts. They just keep on relentlessly pushing towards the end of the waypoint until their vehicle is disabled. What can I change to fix this?
-
I'm having trouble finding any texture or vegetation replacers for OFP... Can anyone make some recommendations? Also I would like for them to be compatable with FFUR 2007.
Car crashing into bus
in OFP : MISSION EDITING & SCRIPTING
Posted
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
;crash.sqs
_car = _this select 0
_bus = _this select 1
_speedms = (speed _car) / 3.6
#check
_posc = getPos _car
_posb = getPos _bus
_dir = ((_posb select 0)-(_posc select 0)) atan2 ((_posb select 1)-(_posc select 1))
_car setDir _dir
_car setVelocity [sin(_dir)*_speedms,cos(_dir)*_speedms, -1]
~0.005
?(_car distance _bus > 1): goto "check"
Exit
Should I just copy and paste that into teh same mission folder?