OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 04 Jul 2005, 14:33:51
-
okay ive checked the search button but couldnt find anything ostly about abondoned armies for some reason
anyway ive seen this done so i know its possible how do i attatch a flag to a unit like a medic flag onto a medic so when they run around they have a flag attacthed to their back
also how do i get the american flag i cant remember and cant find it anywhere
ill check in some of my missions for the second but the first one i dont have a clue
thanks
-
For the first question, place a flagpole in the editor and name it something (in my example we'll name it flag1). Now name your medic something (medic1). Now, in a trigger On Activation field or in an init field of the flagpole or medic write:
flag1 setflagowner medic1
...or is it
medic1 setflagowner flag1 ?
Uhhh, damn, now I can't remember. Give both a try and see if one of them works ::).
As for question 2, let me look around a bit and I'll get back to you.
-Student Pilot
EDIT:
Ok, put the following in the init field of the flagpole for the USA flag:
this setFlagTexture "USA_vlajka.pac"
Also, put this for the Soviet flag:
this setFlagTexture "rus_vlajka.pac"
Correct syntax for the first question is:
flag1 setFlagOwner medic1
-
thanks alot seems to work fine
topic solved