DFBarracks - Forums




Delta Force Barracks Forums - Powered by XMB 1.9.11
Delta Force Barracks Forums
Not logged in [Login ]
Go To Bottom

Printable Version  
Author: Subject: AI Chasing Player
The RealD
Grunt
*




Posts: 8
Registered: 5-5-2005
Member Is Offline


shocked.gif posted on 9-1-2005 at 05:30 AM
AI Chasing Player


How do I make for instence an enemy boat chase my boat on the river?

i did an area trigger that activates when my boat passes a certin area.
for the action part I tryied redirecting the boat's ssn to the waypoint "goto player",
and nothing, i tryied maybe instead of the boat's ssn, the ssn of its driver, yet NOTHING...

Please help me...:(




View user's profile View All Posts By User
chrislew200
Field Marshall
*******




Posts: 3368
Registered: 3-30-2003
Member Is Offline

Mood: ~RSU~ Is Home

[*] posted on 9-1-2005 at 05:44 AM


Quick question so i can test this out what type of map is it DM, single player ETC...



No Longer Present
View user's profile View All Posts By User
The RealD
Grunt
*




Posts: 8
Registered: 5-5-2005
Member Is Offline


[*] posted on 9-1-2005 at 06:56 AM


The Map Is a single player.
View user's profile View All Posts By User
Jonathan
Captain
****




Posts: 295
Registered: 5-4-2003
Member Is Offline


[*] posted on 9-1-2005 at 03:07 PM


This might be a crude method, but you could grid the river into areas using trigger areas. Next put a waypoint in the center of each grid (area trigger).

Now, setup an Event for each grid. If the player is in that grid, then redirect the enemy boat to that waypoint. You'll probably have to reset each grid Event in case the player comes back to a grid.

View user's profile View All Posts By User
General Electric***
Corporal
***


Avatar


Posts: 155
Registered: 7-9-2005
Member Is Offline

Mood: generous

[*] posted on 9-1-2005 at 10:11 PM


hi,
I havent worked with boats so far, if u set everything right I would check 3 things:
1. Have set the boat to follow the other boat ?
You must use the boats id not the one of the enemy to chase that other boat. IF the BG is attached to the boat any redirections of his ssn2ssn or ssntowp will not have any effect. I suppose u did that right.
2.Check the AIP for the boat. Some AIPs work better some less to make a vehicle go into a certain direction. Same with helos. They behave differently with different AIPs.
3. If your WAc is already loaded with many commands this riverchase may not work at al. Remember that the player constantly changes his position. The game has to ajust to that permanently. So it would be ok if the player remains in one position for longer but if he moves a lot then the chasing routines will lag behind. The engine will give up on that. I had the same problems using support bots to follow the player. If there is too much going on and the player is moving around to much they get lost for a while. Once the player halts they will come to him again.

After all could also be that you have simply used the events or triggers in an inpropriate way. That can happen to anyone. Missed a bracket or else.
Maybe it would be best to post the event script and everybody can get a clearer picture. Because otherwise all this will remain guessing...
CU
View user's profile Visit user's homepage View All Posts By User
deadmead
Grunt
*




Posts: 7
Registered: 9-28-2003
Member Is Offline

Mood: good

[*] posted on 10-26-2006 at 06:01 AM


Quote:
Originally posted by The RealD
How do I make for instence an enemy boat chase my boat on the river?

i did an area trigger that activates when my boat passes a certin area.
for the action part I tryied redirecting the boat's ssn to the waypoint "goto player",
and nothing, i tryied maybe instead of the boat's ssn, the ssn of its driver, yet NOTHING...

Please help me...:(


For so far i now! you can do it by a Event part! i dont now if you want to start it whit a area-tiger. but if you just set the ai target on the snn off your player's boat. thi cant be don in the events!

(if player in area than target ssn by ssn,priority, 1 Ai ssn than player ssn.)


This will do it!!!

If you need help whit it, i will pleased to help you!!! or you send the mis file i program it for you! !
View user's profile Visit user's homepage View All Posts By User
SAS private LoL
General
******




Posts: 887
Registered: 4-17-2006
Location: Europe, Slovenia
Member Is Offline

Mood: Umm...no idea

[*] posted on 10-26-2006 at 06:32 AM


rofl...so much choices....

Just make two separate waypoints, one for player and one for the enemy and an area trigger. When the players boat crosses that trigger, redirect the enemy boat to the waypoint beside the player boats waypoint or just the same waypoint list, just diff number...
Should look like, hes chasing the player...

few BHD tricks of mine, since the AI there sucks bad...











View user's profile Visit user's homepage View All Posts By User This user has MSN Messenger

  Go To Top

Powered by XMB 1.9.11
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 15] [PHP: 57.4% - SQL: 42.6%]












Copyright © 2002 - 2008 All Rights Reserved - DFBarracks.com
Site Design by A.Bullet - ScreamingDemon.com