Home   Help Search Login Register  

Author Topic: Please help with transfaring unit name script!!  (Read 518 times)

0 Members and 1 Guest are viewing this topic.

CptBravo

  • Guest
Please help with transfaring unit name script!!
« on: 28 Jul 2003, 02:57:01 »
Hi,

I am using the multiple squad script for MP. Only problem is if the player dies, he loses command of the 8 squads he is leading. The squads can be lead by "Player1" and the human oppnonent can be lead by "Player2" only.

The question, is there a script where if my player dies, the next in his squad unit's name  becomes "Player1" and same for the other commander.

Any help is greatly appreciated.
« Last Edit: 28 Jul 2003, 02:57:40 by CaptainBravo »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Please help with transfaring unit name script!!
« Reply #1 on: 28 Jul 2003, 23:19:45 »
I don't know if this will work, but try

leader grpOne = player1
Plenty of reviewed ArmA missions for you to play

CptBravo

  • Guest
Re:Please help with transfaring unit name script!!
« Reply #2 on: 29 Jul 2003, 05:33:32 »
Hi macguba,

Thanks for your response. Just one question, where should this line go? Triggor? Description file? The init field of the player?  

Thanks

« Last Edit: 29 Jul 2003, 05:34:39 by CaptainBravo »

CptBravo

  • Guest
Re:Please help with transfaring unit name script!!
« Reply #3 on: 31 Jul 2003, 05:45:05 »
Umm .. yes .. well ... :)

Anyone any hints pleaaaase ...

CptBravo

  • Guest
Re:Please help with transfaring unit name script!!
« Reply #4 on: 31 Jul 2003, 05:55:13 »
leader grpOne = player1 gives me : error unkown operator.

Any other soloutions are grrrrrrrrrrreatly appreciated!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Please help with transfaring unit name script!!
« Reply #5 on: 31 Jul 2003, 15:00:36 »
It should go in a trigger or a script.   Definitely not an init line.

Since it doesn't seem to work anyway, instead of player1 in your main script have a variable - lets say "commander" - carry out all the operations.

So, in the main script, replace player1 with commander.   At the top of the script add the line

commander = leader grpOne

(assuming you have named player1's group grpOne, that is)

Again, just a suggestion, no idea if it will work or not.

Plenty of reviewed ArmA missions for you to play

Offline benreeper

  • Members
  • *
  • I'm a llama!
Re:Please help with transfaring unit name script!!
« Reply #6 on: 02 Aug 2003, 04:37:08 »
The assignment always goes on the right.

Ben

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Please help with transfaring unit name script!!
« Reply #7 on: 02 Aug 2003, 11:32:18 »
Ben, do you mean that

player1 = leader grpOne

might work whereas leader grpOne = player1 would not?
Plenty of reviewed ArmA missions for you to play