Home   Help Search Login Register  

Author Topic: A question  (Read 494 times)

0 Members and 1 Guest are viewing this topic.

Bohemia boy

  • Guest
A question
« on: 11 Jul 2004, 11:59:19 »
Is it posible to make a unit carry a flag in SP mission? LIke in a capture the flag MP.

Thanks
   Greetings from Bohemia

PsyWarrior

  • Guest
Re:A question
« Reply #1 on: 11 Jul 2004, 23:46:38 »
Greetings,

Case study: Official single missions: HUMMWV: All the vehicles carry a flag, seen in the intro, and during the mission. When the player disembarks from his vehicle, he also carries a flag.

No guarantees on this but this is how I think it can be done: Place down a flagpole somewhere (possibly where it cannot be seen by the player) and name it. Place the flag that you want the unit to carry on it (for example, USA_Vlajka.pac). When you want to transfer the flag to a unit, use the code

flagPoleName setFlagOwner unitToCarryFlag.

This way, you can place flags on vehicles as well.

Untested, but it should work.  :P

-Supr. Cmdr. PsyWarrior
-Psychic Productions

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:A question
« Reply #2 on: 12 Jul 2004, 09:13:49 »
Yeap... that's about right.

Just bear in mind that vehicles cannot carry flags... you have to give them to a unit inside them (say the driver). ;)

So you'd use:

flag setflagowner (driver vehicle)

Bohemia boy

  • Guest
Re:A question
« Reply #3 on: 13 Jul 2004, 13:51:28 »
thanks

by any chance do you know the russian flag name

thanks again

PsyWarrior

  • Guest
Re:A question
« Reply #4 on: 13 Jul 2004, 15:37:52 »
I believe you are looking for

"Rus_Vlajka.pac"

So:
this setFlagTexture "RUS_Vlajka.pac"

in the flag's init field.

And sui: Quite right. That knowledge must have got lost somewhere along the way... ::)
But the flag does display on the vehicle, so the result is the same.

-Psy|W
« Last Edit: 13 Jul 2004, 15:40:12 by PsyWarrior »

Dubieman

  • Guest
Re:A question
« Reply #5 on: 13 Jul 2004, 15:41:46 »
While we are on flags if you've played that mission HMMV. Then you know the flag can sometimes be going forwards like the wind is behind it even though you are speeding along at 70... :-\

How can this happen? Does the flag just go random ways? ???

I've also noticed this in CTF, it got me killed once cause I cant see through a flag in my face.  :( :P

PsyWarrior

  • Guest
Re:A question
« Reply #6 on: 13 Jul 2004, 15:55:46 »
Every time you start up OFP, a random wind direction is chosen. Flags will always blow in this direction.

I can't remember if movement speed affects the blowing of the flag, as it's been a while since I have played with any flags in OFP, but I would suspect not.

-Psy|W