View Single Post
  #17  
Old 03-06-2014, 06:30 PM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Look closely at this wac, download with this map in the ZIP file below.
I've discovered it let's the AI board the chopper if you set the right angle of approach for AI

In this script1 the helo waits for player
In script2 the helo takes of immediately.

We just change "and" to "or"

In the MED you use object SSN numbers - in the NILE you use the object ID numbers as SSN
//script1
if never() then
ssn2ssn(1,2)//send (AI ssn1) to (helo ssn2)
endif

if ssnnearssn(1,2,10) and ssnonssn(10000,2) and never() then// helo waits for player (ssn10000)
set(v1,1)
endif

if eq(v1,1) and never() then
ssntowp(2,1)//sends helo to waypoint 1
endif

//script2
if never() then
ssn2ssn(1,2)//send (AI ssn1) to (helo ssn2)
endif

if ssnnearssn(1,2,10) or ssnonssn(10000,2) and never() then// helo takes off immediately (AI ssn1)
set(v1,1)
endif

if eq(v1,1) and never() then
ssntowp(2,1)//sends helo to waypoint 1
endif
Attached Files
File Type: zip Test_AI_Boarding.zip (2.3 KB, 4 views)

Last edited by Guest001; 03-06-2014 at 07:15 PM.
Reply With Quote