Форум HeroesWorld-а - Показать сообщение отдельно - [ВОПРОС] Как мне добавить эффекты от заклинаний на карту?
Показать сообщение отдельно
#2
Старый 08.05.2015, 22:36
  #2
^
Ment
 
Аватар для Ment
📖
Регистрация: 30.10.2009
Адрес: Национальный заповедник
Сообщения: 30681
Регистрация: 30.10.2009
Адрес: Национальный заповедник
Сообщения: 30681
По умолчанию
Re: [ВОПРОС] Как мне добавить эффекты от заклинаний на карту?

Из мануала:
PlayVisualEffect
PlayVisualEffect — plays defined visual effect (no sound) on the adventure map
Syntax
PlayVisualEffect(effectName, objectName="", tagName="",
x=0,y=0,z=0, rot=0, floor=0);
Description
Plays visual effect with specified name. The center of the effect is the position of the specified
object objectName with alteration x,y,z. The angle of the effect depends on the root object’s
angle with alteration of rot. If root object is not defined (the parameter is left empty), then video
effect is positioned on the adventure map at coordinates x,y,z (effect’s height is based on the
target map cell height + z), map floor is defined by the parameter floor.
If the specified effect defined as cyclic, then parameter tagName is required to stop the
animation. Function StopVisualEffects stops playing video effects.
effectName – link to the effect’s resource
objectName – root object’s name (may not be defined)
tagName – effect’s script name, is required to control the effect, may not be defined (default)
x,y,z – effect coordinates (depends on the map or on the root object coordinates)
rot – effect’s rotation angle (depends on the root object angle or works independently)
floor – adventure map floor (used if no root object defined), 0 - ground, 1 - subterrain
Пример:
PlayVisualEffect("/Effects/_(Effect)/Spells/Slow.xdb#xpointer(/Effect)", hero, "", 0, 0, 0, 0, 0);
P.S. Лень было лезть в мануал самому, откопал пост Dyrman'а )
Ment вне форума
Ответить с цитированием