
12-02-2002, 10:21 AM
[code:fda94]
$guy.enableEnemy = 0
$goodguy runto $path1
$guy waittill movedone
$guy.enableEnemy = 1
$guy.enableEnemy = 0
$goodguy1 runto $path2
$guy waittill movedone
$guy.enableEnemy = 1
[/code:fda94]
That'll make them run one by one, that is, when you would have use the $goodguy and $goodguy1 targetnames consequently. Better is to create a separate thread for running purposes:
[code:fda94]
runto_path local.path:
self.enableEnemy = 0
self runto local.path
self waittill movedone
self.enableEnemy = 1
end
[/code:fda94]
Then make them run with these commands:
[code:fda94]
$goodguy thread runto_path $path1
$goodguy1 thread runto_path $path2
[/code:fda94]
|