Home   Help Search Login Register  

Author Topic: I need help  (Read 1764 times)

0 Members and 1 Guest are viewing this topic.

Offline YacieK

  • Members
  • *
  • i like smell napalm on the morning...
I need help
« 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

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: I need help
« Reply #1 on: 16 Jun 2008, 22:17:47 »
So you have two vehicles, one has a flag, if damaged the flag should be moved to the second vehicle, right?

Offline YacieK

  • Members
  • *
  • i like smell napalm on the morning...
Re: I need help
« Reply #2 on: 16 Jun 2008, 22:42:29 »

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

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: I need help
« Reply #3 on: 16 Jun 2008, 22:50:04 »
sounds like:

1 pbr2 with a flag attached...
when the pbr takes fire the flag texture changes from normal to his damaged texture?


Offline YacieK

  • Members
  • *
  • i like smell napalm on the morning...
Re: I need help
« Reply #4 on: 16 Jun 2008, 22:59:31 »
Quote
when the pbr takes fire the flag texture changes from normal to his damaged texture?
Exactly :)


Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: I need help
« Reply #5 on: 17 Jun 2008, 04:23:42 »
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):


and after impact the flag changes to... (racs flag in this example):


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.  :)

« Last Edit: 17 Jun 2008, 04:33:11 by loki72 »

Offline YacieK

  • Members
  • *
  • i like smell napalm on the morning...
Re: I need help
« Reply #6 on: 17 Jun 2008, 06:05:07 »
thx  :clap:

Offline i0n0s

  • Former Staff
  • ****
Re: I need help
« Reply #7 on: 17 Jun 2008, 12:44:29 »
Wouldn't it be easier to set the boat as flagcarrier?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: I need help
« Reply #8 on: 17 Jun 2008, 14:32:16 »
FlagCarrier?

The class FlagCarrier is already configured to use vlajkstozar.p3d (Flagpole to you and me).

Unless you meant something completely different.   :D


Planck
I know a little about a lot, and a lot about a little.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: I need help
« Reply #9 on: 17 Jun 2008, 14:36:42 »
He means setFlagOwner.
Code: [Select]
Flag_Obj = "FlagCarrier" createVehicle [0,0]
Flag_Obj setFlagTexture FlagPath
Flag_Obj setFlagOwner player
Code snippet taken from Dog of War's Flag Bearer/Ammo Bug mod.
« Last Edit: 17 Jun 2008, 14:49:06 by Mr.Peanut »
urp!