Joogi,
1) If you mean script construction then no, script can return value only with global var(defined in GlobalVars construction in .mob file) in script or global game var(use GSSetVar, GSGetVar).
2) There are 2 ways to make it:
- With AddMob("mob_file_name.mob") script procedure. But this way requires for each monster's pack its call of AddMob.
- With AddUnitToServer, this way is the worst way. Because for each mob its requires its call of AddUnitToServer and it correctly works only with humans or orc's.
1) If you mean script construction
Код:
Script #SomeScript(
if
(
...
)
then
(
...
)
if
...
)
2) There are 2 ways to make it:
- With AddMob("mob_file_name.mob") script procedure. But this way requires for each monster's pack its call of AddMob.
- With AddUnitToServer, this way is the worst way. Because for each mob its requires its call of AddUnitToServer and it correctly works only with humans or orc's.