After some hours, i finally obtain sucess !
But, there area a problem.
If i call a actor to follow me (ai -> actor -> 2nd ranger) he work for few seconds and so the console give a error. When i change this line in my script the actor dont follow, also dont exist the crash of game
$friendly2 thread global/friendly.scr::friendlythink
The error of script is:
Script Error: Cannot cast 'NIL' to float
wait self.waittime (global/friendly.scr, 1172)
The entire thread:
InitFriends:
$friendly2.friendtype = 1
$friendly2.distance = 200
$friendly2.health = 300
$friendly2 thread global/friendly.scr::friendlythink
//$friend_trigger waittill trigger
$friendly2.destination = $player
end