OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BlinkDog on 11 Oct 2003, 15:13:24
-
I'm looking to make a cutscene for a mission and I would like a tank in it to have a flag raised as it drives along the road. How do I set a flag texture on the flag proxy so it will show in my cutscene?
-
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=9225;start=0
:cheers:
-
It works for flag poles but not for vehicle flag proxies.
-
If you have a flag carrier get in a vehicle, the flag is placed on the front fender on a short pole. Once the flag carrier leaves the vehicle, the flag will once again appear on his back.
the relevant part of the thread though it says that if you have a flagholder (unit) get into a vehicle.. the flag will appear on the vehicle until the flagholder exits the vehicle... if you're using a tank that is driving down the road...
give the flag to the driver/commander/gunner instead of the vehicle its self.... and as long as they're inside the flag should show up ;)
-
Okay so I have to create an empty vehicle then and do a setFlagtexture to the commander? or any crew? I'll give it a whirl later, I had to reformat after installing the 1.94 patch :(
-
Still doesn't work since the flag does not appear on the soldier. When I use the setObjectTexture command it gives me "Unknown operator type"
-
Still doesn't work since the flag does not appear on the soldier. When I use the setObjectTexture command it gives me "Unknown operator type"
Hey Blinkers, ;D
The command you want is setflagowner
flagname setFlagOwner unitname
then, just have them get into the vehicle by WP or by using moveindriver tankname command
8)
-
hey that works, I also just need to add a flag pole anywhere on map with the actual flag. So for people in the future who need to do the same thing here is what u do:
1. make a flag pole anywhere on the map, even in water. name it then assign the flag texture using {nameofunit} setFlagTexture {"flag.jpg"}
2. Create the ubit that will be crew in the empty vehicle. then do the set flag owner command. {nameofpole} setFlagOwner {unitname}, then assign the unit as a crew {unitname} moveInDriver {vehiclename}
3. create an empty vehicle and assign it a name so you can assign crew.
-
... or you can just give the flag directly to the driver of the vehicle:
flag setflagowner (driver vehicle)
Good to see your problem is solved, BlinkDog. If there's nothing else to add, please push the 'solved' button on the bottom left down there ;)
-
... or you can just give the flag directly to the driver of the vehicle:
flag setflagowner (driver vehicle)
Good to see your problem is solved, BlinkDog. If there's nothing else to add, please push the 'solved' button on the bottom left down there ;)
Aye, and just before you do ..... I'll add that if you want the flag to stay on the vehicle without troops in it , you gotta kill the flagcarrier while he's still in the vehicle! Only way I could figure that one out. ;D