Home   Help Search Login Register  

Author Topic: making a western unit join eastern squad  (Read 446 times)

0 Members and 1 Guest are viewing this topic.

ThEoNaNdOnLy

  • Guest
making a western unit join eastern squad
« on: 06 Dec 2004, 22:31:29 »


hello

im making a mission where you have to capture a general, but im having a slight problem actually capturing the general.

what command would i use in a trigger so that the general joins my squad?
i dont want my units shooting him so i guess i should put "general setcaptive true" but what do i put to actually have him join my squad, so that i can give him orders etc.

i cant remember where it was, might have been the last mission on the origional game, but at the end you had to capture the general. i saw it done there and i want the same thing done.


Guy

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:making a western unit join eastern squad
« Reply #1 on: 06 Dec 2004, 22:33:18 »
general join me(you)

ThEoNaNdOnLy

  • Guest
Re:making a western unit join eastern squad
« Reply #2 on: 06 Dec 2004, 22:36:26 »

are you sure? when i tried it diddnt work?

this is General (western unit) joining player (eastern unit)

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:making a western unit join eastern squad
« Reply #3 on: 06 Dec 2004, 22:38:20 »
perhaps its general join group player
check the comref

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:making a western unit join eastern squad
« Reply #4 on: 06 Dec 2004, 22:39:33 »
nevermind, here you go:
unitArray join group
Operand types:
    unitArray: Array
    group: Object or Group
Type of returned value:
    Nothing
Description:
    Join all units in the array to given group. Note: total number of group members must not exceed 12. Note: This function is unsupported in MP in version 1.33 and before.

Example:
    [unitOne, unitTwo] join player

so it would be [general] join player

ThEoNaNdOnLy

  • Guest
Re:making a western unit join eastern squad
« Reply #5 on: 06 Dec 2004, 22:40:56 »
ok sorry yea i have it working now, i wasnt typing the generals name in right

i was doing

general join player

when it shud have been
[general] join player

Guy
thank you for your help