Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Regarding PutNPC2 Layers? (https://forums.graalonline.com/forums/showthread.php?t=134266125)

Gunderak 03-31-2012 03:42 PM

Regarding PutNPC2 Layers?
 
Is there any way of changing the layer that putnpc2 is on? eg putting it in front of another NPC?
I have a level NPC and it creates a PutNPC2 and I want it to be on top of the NPC..

cbk1994 03-31-2012 04:11 PM

You can't change an NPC's or a player's layer.

To some extent you can change how NPCs display using drawUnderPlayer or drawOverPlayer (which also changes how they appear in relation to other NPCs).

Depending on what you're doing you could possible use showimg/showani with attachtoowner=true. That would allow you to use some layers (0 through 3).

Gunderak 03-31-2012 06:25 PM

drawOverPlayer(); worked like a charm, thanks!


All times are GMT +2. The time now is 03:05 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.