[DiscordArchive] Hi guys, i have problem on master. I have made a command adds visual effect to player. And it works
[DiscordArchive] Hi guys, i have problem on master. I have made a command adds visual effect to player. And it works
![[Image: image.png?ex=690c2c3d&is=690adabd&hm=4eb...6dcbe8f53&]](https://cdn.discordapp.com/attachments/376074396915335170/1172038852941193308/image.png?ex=690c2c3d&is=690adabd&hm=4eb6cd561917da675a1833e21ce2e928960e6656c73a2f9fe9640d96dcbe8f53&)
Archived author: ERINGAR • Posted: 2023-11-09T05:03:58.044000+00:00
Original source
Hi guys, i have problem on master. I have made a command adds visual effect to player. And it works fine. Other players can see new effects, but only if Effect was added, when the player was inside observer player vision distance. And:
1. If observer player logs out and logs in again, he doesn't see any effect on "caster" player.
2. If observer player goes far from "caster" player, all effects are disappear.
Animations by "SetAIAnimKitId" func - work perfect, but spell effects - are not. Can some one of TC devs tell me, what should i do to make this feature works correct?
![[Image: image.png?ex=690c2c3d&is=690adabd&hm=4eb...6dcbe8f53&]](https://cdn.discordapp.com/attachments/376074396915335170/1172038852941193308/image.png?ex=690c2c3d&is=690adabd&hm=4eb6cd561917da675a1833e21ce2e928960e6656c73a2f9fe9640d96dcbe8f53&)
Archived author: Tea • Posted: 2023-11-09T08:45:02.039000+00:00
Original source
SendPlay*** functions cause non-persistent (and not tracked by server) visuals
Archived author: ERINGAR • Posted: 2023-11-09T08:48:50.336000+00:00
Original source
Is there is any other option to set some visual effect to player, that works as i expect?
Archived author: Tea • Posted: 2023-11-09T08:49:29.726000+00:00
Original source
you could try using StateSpellVisualID in unit updatefields (m_unitData)
Archived author: Tea • Posted: 2023-11-09T08:49:52.599000+00:00
Original source
but because this field is currently unused, it has no functions to modify it so you would need to write one
Archived author: Tea • Posted: 2023-11-09T08:50:00.903000+00:00
Original source
and it uses visual id, not visual kit id
Archived author: Tea • Posted: 2023-11-09T08:51:15.916000+00:00
Original source
if that doesnt satisfy you then you need to find auras that have the visual you want (and no undesirable other effects)
Archived author: ERINGAR • Posted: 2023-11-09T08:52:41.732000+00:00
Original source
Hm... Okay, ty, and one more question. Is there is any event, calls when player A becomes visible for player B? Something like "OnPlayerBecomesVisible(Player* p)"?
Archived author: Tea • Posted: 2023-11-09T08:53:36.615000+00:00
Original source
no, there isnt
Archived author: ERINGAR • Posted: 2023-11-09T08:54:12.467000+00:00
Original source
Sad... Ty anyway. Yo're cool