The RealD
Grunt
Posts: 8
Registered: 5-5-2005
Member Is Offline
|
|
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...
|
|
|
chrislew200
Field Marshall
     
Posts: 3368
Registered: 3-30-2003
Member Is Offline
Mood: ~RSU~ Is Home
|
|
Quick question so i can test this out what type of map is it DM, single player ETC...
No Longer Present
|
|
|
The RealD
Grunt
Posts: 8
Registered: 5-5-2005
Member Is Offline
|
|
The Map Is a single player.
|
|
|
Jonathan
Captain
  
Posts: 295
Registered: 5-4-2003
Member Is Offline
|
|
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.
|
|
|
General Electric***
Corporal
 
Posts: 155
Registered: 7-9-2005
Member Is Offline
Mood: generous
|
|
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
|
|
|
deadmead
Grunt
Posts: 7
Registered: 9-28-2003
Member Is Offline
Mood: good
|
|
| 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! !
|
|
|
SAS private LoL
General
    
Posts: 887
Registered: 4-17-2006
Location: Europe, Slovenia
Member Is Offline
Mood: Umm...no idea
|
|
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...
|
|
|