OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: YacieK on 16 Jun 2008, 22:12:19
-
I greet :)
I need hrlp in writing script. I is not known on it. I want to give flag to vehicle. After fire by enemy i would like in order to flag has been changed on other.
Regards
-
So you have two vehicles, one has a flag, if damaged the flag should be moved to the second vehicle, right?
-
Have PBR II with flag. I would like in order to flag was shot after fire on. Textures are ready,
writing of script is problem discover for fact of shooting so PBR.
I apologize for my english - regards Yac
-
sounds like:
1 pbr2 with a flag attached...
when the pbr takes fire the flag texture changes from normal to his damaged texture?
-
when the pbr takes fire the flag texture changes from normal to his damaged texture?
Exactly :)
-
i'm good at broken english.. all the bier :whistle:
ok.. i like a new challenge.
to try to visualize what you want... (sla flag):
(http://img247.imageshack.us/img247/8432/yacie1oq1.jpg)
and after impact the flag changes to... (racs flag in this example):
(http://img206.imageshack.us/img206/8601/yacie2oh3.jpg)
if so.. a couple of things are needed:
1. a way to attach the flag to the boat and keep it moving in real time with the boat.
2. the boat needs an 'event handler' for the 'hit' in order to fire off the "change_flag_texture.sqf"
this is as far as i can take you. :)
-
thx :clap:
-
Wouldn't it be easier to set the boat as flagcarrier?
-
FlagCarrier?
The class FlagCarrier is already configured to use vlajkstozar.p3d (Flagpole to you and me).
Unless you meant something completely different. :D
Planck
-
He means setFlagOwner (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=s#296).
Flag_Obj = "FlagCarrier" createVehicle [0,0]
Flag_Obj setFlagTexture FlagPath
Flag_Obj setFlagOwner playerCode snippet taken from Dog of War's Flag Bearer/Ammo Bug mod.