Home   Help Search Login Register  

Author Topic: add team members through action menu  (Read 468 times)

0 Members and 1 Guest are viewing this topic.

repta

  • Guest
add team members through action menu
« on: 09 Jan 2005, 23:12:56 »
I wanted to know if it was possible to have units on a map(like at a base) that you can just walk up to and have them join your team through the action menu. same with making the leave your team. If it is possible please tell me how.

bored_onion

  • Guest
Re:add team members through action menu
« Reply #1 on: 09 Jan 2005, 23:21:53 »
i think ECP had a feature like this. if you want to do it on its own just use an action menu command activated by proximity and then do a join command. the commands are all in the comref.

repta

  • Guest
Re:add team members through action menu
« Reply #2 on: 09 Jan 2005, 23:32:18 »
 im a newb at scripting and triggers so you will have to explain to me how to do that exactly.
thanx

repta

  • Guest
Re:add team members through action menu
« Reply #3 on: 10 Jan 2005, 00:01:46 »
I am making a freeroaming mission. it takes pace on a russian controled Nogova. you are a resistence person. I want there to be people standing around your base(castle near trosky) that you can go up to and make them join/leave your team. when they die I want them to respawn at the base. i can do the respawn, i just cant do the join/leave team.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:add team members through action menu
« Reply #4 on: 10 Jan 2005, 00:48:29 »
The vital commands are join and addAction.    Add the action to the loon that you want to join the player, and the action will appear automatically in the player's action menu when he gets close to the loon.

Obviously when a loon joins your group use removeAction to remove the join action and replace it with a leave action.     There's plenty of information on the addAction command kicking around the Ed Depot and the forum.


Plenty of reviewed ArmA missions for you to play

repta

  • Guest
Re:add team members through action menu
« Reply #5 on: 10 Jan 2005, 01:24:30 »
this is what i have for Join.sqs:
_Owner = _This select 0
_Caller = _This select 1
_Index = _This select 2

? Count units group player > 10 : nobody globalchat "Your group is full";exit

units _Owner join player
_Owner removeAction _Index

I can make the unit follow me, but how do i make him leave me

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:add team members through action menu
« Reply #6 on: 10 Jan 2005, 01:54:04 »
[loon1] join grpNull

Remember that the join command takes an array.
Plenty of reviewed ArmA missions for you to play

repta

  • Guest
Re:add team members through action menu
« Reply #7 on: 10 Jan 2005, 16:29:41 »
could you please tell me what to type and where. as i said earlier I am a newb at scripting.