OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: greg147 on 08 Jan 2005, 17:50:26
-
I've had this idea that could be a good script.
When you put troops in a truck or on a tank, they normally sit there passing their weapon from hand to hand etc. But it looks a bit unrealistic when you ambush a convoy, and the cargo of the truck just sit there pretending its not happening.
So, would it be possible to have a script the made it so, if a shot was fired a certain distance from the truck, the cargo started taking cover in the truck, or aimed their guns (not firing) out, as if looking for a target.
Its just an idea, but it would look pretty good ;)
-
I would think so but you would have too do the animations yourself.
You could use a script similar too this:
?(behaviour _cargo != "Safe"):_cargo switchmove "SitAware"