• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Draw Attached Effect

Kotetso

New Member
Joined
Nov 8, 2010
Messages
9
Reaction score
3
Hello, I'm trying to understand the "drawAttachedEffect" for drawing auras/shadders, as far as I understand we can create them though the lua files and apply to local players, meaning that only that specific player will be able to see the effect, but how do I make so everyone else can see it?

I'm already able to pass a function to "Creature::internalDrawOutfit" to tell if the player has the aura, but how do i make so it draws to everyone?

Sorry if it is not clear, I can provide more information
 
C++:
SpectatorVec spectators;
    map.getSpectators(spectators, creature->getPosition(), true);
    for (Creature* spectator : spectators) {
        if (Player* tmpPlayer = spectator->getPlayer()) {
            // function internalDrawOutfit
        }
    }
like this :p
 
Back
Top