Home   Help Search Login Register  

Author Topic: flags  (Read 570 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
flags
« 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

Offline Pilot

  • Contributing Member
  • **
Re:flags
« Reply #1 on: 04 Jul 2005, 15:10:42 »
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:
Quote
this setFlagTexture "USA_vlajka.pac"

Also, put this for the Soviet flag:
Quote
this setFlagTexture "rus_vlajka.pac"

Correct syntax for the first question is:
flag1 setFlagOwner medic1
« Last Edit: 04 Jul 2005, 15:15:18 by Student Pilot »

Offline 456820

  • Contributing Member
  • **
Re:flags
« Reply #2 on: 04 Jul 2005, 15:30:14 »
thanks alot seems to work fine
topic solved