Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Wait!! we follow you!  (Read 1246 times)

0 Members and 1 Guest are viewing this topic.

johan_d2

  • Guest
Wait!! we follow you!
« on: 09 Mar 2005, 00:06:06 »
Hi, in my mission I have civillian who is an informant and lead the way to a certain point. Since the player has no waypoints, how do I keep him from going his route and wait for us(me) while we securely follow him?

At the moment I use small steps, where he waits for a second or 10, but it would be better if he sticks with me..

Any idea how?

Johan


StonedSoldier

  • Guest
Re:Wait!! we follow you!
« Reply #1 on: 09 Mar 2005, 00:26:32 »
_civvi = _this select 0
_soldier = _this select 1

#go
_civvi domove getpos someplace
_civvi setspeedmode "full"
@(_civvi distance _soldier)>20
dostop _civvi
_civvi sidechat "Try to keep up with me"
@(_civvi distance _soldier)<20
_civvi sidechat "Ok, Follow me"
goto "go"

johan_d2

  • Guest
Re:Wait!! we follow you!
« Reply #2 on: 09 Mar 2005, 00:57:34 »
_civvi = _this select 0
_soldier = _this select 1

#go
_civvi domove getpos someplace
_civvi setspeedmode "full"
@(_civvi distance _soldier)>20
dostop _civvi
_civvi sidechat "Try to keep up with me"
@(_civvi distance _soldier)<20
_civvi sidechat "Ok, Follow me"
goto "go"

Hmm.. looks good, but what if I put waypoints on my map? "someplace" isnt know? or?
My civvi is taking not a direct route, but goes a certain path.

Johan