OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Owens on 19 Jun 2003, 16:21:14

Title: Getting AI to join your group
Post by: Owens on 19 Jun 2003, 16:21:14
I have a hostage situation where west rescue a west pilot from east.
I had to make the group leader a civi so they didnt fire at pilot.
Q1. But is there a way to make the pilot join the west group when a trigger happens and be able to command him. Will it need a script or just syntax in init field of the unit.

Q2. Is there a command for hold position cos my pilot keeps runnin round like a madman and ends up in the middle of a forest.

Thx
Title: Re:Getting AI to join your group
Post by: Iwesshome on 19 Jun 2003, 17:58:18
Quote
I had to make the group leader a civi so they didnt fire at pilot.
Try using this setcaptive true so you dont have to make civi group leader

Quote
Q1. But is there a way to make the pilot join the west group when a trigger happens and be able to command him. Will it need a script or just syntax in init field of the unit.
loon1 join loon2

Quote
Is there a command for hold position cos my pilot keeps runnin round like a madman and ends up in the middle of a forest.
- Use a Hold Waypoint

Head over to the Editor Depot and check out the Official and Unofficial Command Ref. Manuals  ;D
Title: Re:Getting AI to join your group
Post by: Owens on 19 Jun 2003, 18:45:30
thx a lot...i can continue on mission now :D
ill go have a look at command refs then.
Thx
Title: Re:Getting AI to join your group
Post by: Iwesshome on 19 Jun 2003, 18:50:06
Don't forgot to hit the Solve button below....
Title: Re:Getting AI to join your group
Post by: Owens on 19 Jun 2003, 22:16:17
The join thing aint working for some reason.

i Put this in the on activation field of trigger:
Code: [Select]
captive1 join playergrp; Captive2 join playergrpIm gettin an error from it for some reason, can you see anything that im doin wrong?
I think the error said something about expected array, am i missin some brackets somewhere or something like that?
thx
Title: Re:Getting AI to join your group
Post by: Tomb on 19 Jun 2003, 22:19:07
name the morons:

 cap1

  cap2


then use this code, matey:

[cap1, cap2] join Player :thumbsup:  :-*


Title: Re:Getting AI to join your group
Post by: Owens on 19 Jun 2003, 23:24:47
Its working now. Thx a lot Tomb ;D