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
Last edited by Guest001; 03-06-2014 at 07:15 PM.
|