Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   General Chat (https://novahq.net/forum/forumdisplay.php?f=2)
-   -   Waypoints and A.I.question (https://novahq.net/forum/showthread.php?t=47743)

bigsmellyfart 08-15-2015 07:22 PM

Waypoints and A.I.question
 
I am having a problem trying to get a helicopter to follow a set of way points... does it have to have a pilot??? if so then why does my pilot keep popping in and out of the vehicle constantly??? also can you set vehicle speed if so how??? tnx anyone's help appreciated ...

BSF

:hail::hail::hail::hail:

bigsmellyfart 08-16-2015 06:47 AM

I fixed the popping in and out but the helli meanders about the way point but does not follow it....

bigsmellyfart 08-16-2015 07:36 PM

well I give up cant make the heli follow the waypoint list...but any help appreciated for use on future maps...

Guest001 08-17-2015 01:43 AM

I can help you my friend but could you specify which NL game it is because there's a quite a difference in AI programming after BHD

bigsmellyfart 08-17-2015 01:47 AM

re
 
DFX2:bigthumb:

Guest001 08-17-2015 03:26 AM

This is assuming Waypoint 1

First thing to check is waypoint numbers. Sometimes they do not assign correctly and are all 1,0.

The waypoint properties should be as follows

1st waypoint: ....Waypoint - 1,0
2nd waypoint: ....Waypoint - 1,1
3rd waypoint: ....Waypoint - 1,2
4th waypoint: ....Waypoint - 1,3
etc...

Guest001 08-17-2015 03:31 AM

If that's OK then...

Assign pilot(s) by (right click) properties or in the events editor.

waypoint 125 = go to any
Pilot = SSN 1
Helo = SSN 2

SSN 1 to waypoint 125 - 2

Redirect SSN 2 to waypoint 1

The helo will start up if AI inside but if it's empty the helo will wait for the AI to get in.

Then it'll start up and fly off but only if it has a waypoint assigned.

Guest001 08-17-2015 03:39 AM

Then


If it's not the first helo directive and you want it to go from one to another waypoint

(New Trigger)
(Trigger Type) - SSN 2 - (Trigger Condition) - Reached Waypoint 1,0

(Action Type) Redirect SSN 2 to waypoint 2,0

(Trigger Type) - SSN 2 - (Trigger Condition) - Reached Waypoint 2,0

(Change AI State) - SSN 2 follow waypoint 2,0

Guest001 08-17-2015 04:14 AM

Removed

bigsmellyfart 08-18-2015 12:09 AM

does it hurt if I give a way point list a specific name?

Guest001 08-18-2015 12:34 PM

Quote:

Originally Posted by bigsmellyfart (Post 384686)
does it hurt if I give a way point list a specific name?

Not at all it's always a good idea to name all groups, waypoint lists, area triggers and assign them to layers... :gj:

bigsmellyfart 08-22-2015 04:44 PM

here is the latest wac file


// WAC file auto-generated by NILE
// Fixed by O.M.
// DM - BHD Camp.WAC

if Past(35) then //New Event
overcast(100,15)
endif

if never() and (Past(60)) then //New Event
flash()
endif

if Elapse(42) then //New Event
flash()
endif

if never() and (Past(60)) then //New Event
wind(55,12)
endif

if never() and () then //New Event
SSN2SSN(4459,69996)
endif

if never() and (Past(35)) then //New Event
SSNtoWP(69996,1)
endif

bigsmellyfart 08-23-2015 01:33 AM

can any one suggest a sp co op map with ai flying birds
that I can study the wac

it must be able to import into the med please

bigsmellyfart 08-23-2015 01:36 AM

my heli keeps getting stuck circling one of the waypoints...

bigsmellyfart 08-23-2015 02:01 AM

hey I got it goin...seems the way points were to close together....

I still need sugestions for maps to study..tnx BSF

bigsmellyfart 08-23-2015 03:58 AM

Now I am going to be brave and a second set of waypoints....WML (wish me luck)

bigsmellyfart 08-23-2015 05:07 AM

yeh....! I did it not just 2 sets but 3 sets of waypoints and they are working ....Yeaaaaaaa...

Guest001 08-23-2015 08:34 AM

I don't know if this will work with a (NILE) map - so () are mainly left out.

It starts 60 seconds after the first player enters the game and has one chance in 30 of repeating every 42 seconds.

if past 60 and elapse 42 and random 30 then
flash()
endif

if chain 1 and never then
wind 55,12
endif

BTW
You can adjust the random factor to any number that suits you. :)

bigsmellyfart 08-23-2015 12:09 PM

tnx i'll try that and yes nile also uses () ...its not part of nile and not part of MED its the scripting language of the game...nile and med just do a lot of the scripting for you with out making a scripting error like you would if scripting by hand...they do it differently ...doing it by hand and one , or . or ) or ( missing or xtra or in the wrong place and it does not work and that incudes using the wrong syntax...
its just nile is a 3d visual interface...tnx gene

Guest001 08-23-2015 10:27 PM

You might also like to add SSN Patrol Speed

//SSN 1 Patrol Speed = 10
if never() then
ssnpspd(1,10)
endif


All times are GMT -5. The time now is 10:43 PM.

Powered by vBulletin®