![]() |
Conversion to gs2?
NPC Code: Doesnt work. At all, and I have NO idea why. It's meant to display a light effect over the player, but it's being a butch and not working. Could someone please explain to me why, so i dont give myself an aneurysm from the thinking. |
Quote:
Quote:
|
Okay, it works, but not as intended.
It isnt being drawn as light, and I want it drawn underneath the player. I've added drawaslight(); but that doesnt seem to work, and I cant figure out a way to toggle it when i call WeaponFired(). I appreciate the help! |
drawaslight() only affects the NPC's actual image, which in the case of a weapon NPC, is not at all useful.
You can modify where the image is displayed by changing it's layer, i.e. changeimgvis(index, 0); will draw underneath the player, 1 and 2 will draw above the player, 3 above the darkness (seteffect()) layer, 4 upwards on the GUI layer. Problem is, is that drawing underneath the player will mean that the light effect is mostly shut out by any daynight-style system. |
For drawing as a light you'd probably want to use changeimgmode() or something along those lines.
|
| All times are GMT +2. The time now is 01:56 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.