Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Delta Force (https://novahq.net/forum/forumdisplay.php?f=101)
-   -   [DFX] Make vehicle follow player? (https://novahq.net/forum/showthread.php?t=47372)

grenadier501 09-21-2013 02:50 PM

Make vehicle follow player?
 
hey all.

I know it is possible to make AI track and follow the player using waypoint 127 "Goto player" , but is there any way to do the same with vehicles?

for example make an enemy tank follow the player..

I tried WP 127 on vehicles but didn't work.. :dontknow:

Guest001 10-02-2013 01:39 AM

One way I can think of is way complex and not really flexible.


example only (not a working script)

if ssnseesssn(driver,player) and ssnarea(tank,area1) and ssnarea(player,area1) then
ssntowp(tank,nearest WP to area1)
endif

Hellfighter 10-03-2013 12:05 AM

would be easy for a player pig-up a tanker bar (doggy bone) then tank follow were ever the player go

like in an doggy treat lol

can you see the tank jumping around like a happy poppy waiting to it get treat lol

only joking

btw good to see you grenadier501 long time

Guest001 10-03-2013 05:38 AM

Try This

Player: ssn 10000
Enemy Driver: ssn 1
Enemy Tank: ssn 2
Enemy detects player: 320m

Redirect the Tank Unit AI to waypoint 1 - Not the driver

if ssnseesssn(1,10000,320) and ssnarea(10000,1) then
set(v1,1)
endif

if eq(v1,1) then
ssntowp(2,1)
endif

Guest001 10-03-2013 05:43 AM

You can then build up a grid of areas with a script along the lines of the above to guide the AI Tank roughly to the area where the player is detected by the driver without the driver jumping from the tank.


All times are GMT -5. The time now is 02:45 AM.

Powered by vBulletin®