Search the Community
Showing results for tags 'convoy mission'.
Found 1 result
-
[SOLVED] Weird interactions between script and attachto
cooked auto posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm working on a mission where the player has to intercept a motorcade of three cars in order to capture an HVT. But an odd interaction between the method I use to disable the engine and the convoy script I'm using is causing some frustration. So in order to intercept the vehicles in the convoy, the players have to disable the engine of either the lead car, or the car carrying th HVT. The way I accomplished this was to attachto a balloon to the hood to the car that is tied to a trigger that will disable the engine once shot. (The Balloons later hidden by removing their textures while they're still considered there.) That works without issue. The motorcade itself uses Tova's Simple Convoy Script to get from point A to B. That works without issue. In this case using the line "convoyScript = [group this, 70, 20, false] spawn TOV_fnc_SimpleConvoy;" on the lead vehicle to call the script. In this case following the video tutorial found in the thread. The script itself present in the mission in a game logic file. But the problem arises when I combine these two parts. When I add a variable name to the cars for the attachto, the convoy script doesn't want to fire. The cars reverting back to the way the AI usually drives, ie poorly. Adding the cars variable name to the group doesn't work, neither does giving the group a variable name and using that. The thread for the script has another way of implementing the script, but using that doesn't seem to do much other than the AI marking off all the waypoints as completed without moving from the spot during testing. Even when trying on a LAN server I get a similar results. So what am I missing in this case? As far as I can deduce it out has something to do with how the convoy script is called, and how it doesn't seem to like the cars in it having names. I don't think I can use the attachto without using a variable name for the cars.- 9 replies
-
- mission scripting
- convoy mission
-
(and 1 more)
Tagged with: