Angelmelody - Jun 27, 2013 1:14
test script
[code=auto:0]
prontera,155,173,5 script test456 100,{
set .@mvp1, bg_monster ( 1, "prontera", 155, 160, "poring 1", 1002, "test456::Ondead1" ) ;
set .@mvp2, bg_monster ( 2, "prontera", 155, 162, "poring 2", 1002, "test456::Ondead2" ) ;
sleep 500 ;
unitattack .@mvp1, .@mvp2 ;
unitattack .@mvp2, .@mvp1 ;
CLOSE;
Ondead1:
Ondead2:
}
[/code]
the summoned mob doesn't attack each other
Frost - Jun 27, 2013 3:40
try to use end instead of close
Angelmelody - Jun 27, 2013 4:52
[i]I don't think[/i] using close is wrong
Ind - Jun 28, 2013 16:40
they are not attacking each other because they're allies (bg_monster only makes them enemies if the teams begin), You can notice that unitattack works if you increase the sleep range or spawn them a bit far away from each other (when the sleep ends they move at each other as if they were going to attack, but they stop at 1-1 range because the server doesn't let they attack -- again, because they're allies).