![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#3 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
This is not a solution for what you asked, read down
They may get stuck while trying to come back (I don't know) but try to add this to your gondor class nasc code Code:
EventHandler NO_DESIRE()
{
myself->AddMoveToDesire(myself.start_x,myself.start_y,myself.start_z,30);
}
Code:
handler 0 29 // NO_DESIRE variable_begin "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // myself push_const 704 add fetch_i push_event // myself push_const 704 add fetch_i // start_x push_const 588 add fetch_i4 push_event // myself push_const 704 add fetch_i // start_y push_const 592 add fetch_i4 push_event // myself push_const 704 add fetch_i // start_z push_const 596 add fetch_i4 push_const 30 func_call 184811540 // func[AddMoveToDesire] shift_sp -4 shift_sp -1 handler_end OK, read now xD edit: Ok, at first I did not read correctly what you wanted. What I've put up here only solves the problem once the gondor guard has nothing to (i.e. the char he was attacking too bsoed). I guess a good solution would be using the func[InMyTerritory] this way: Code:
if (myself->InMyTerritory(myself.sm))
{
}
else
{
myself->InstantTeleport(myself.sm,myself.start_x,myself.start_y,myself.start_z);
RemoveAllAttackDesire();
}
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|