[SOLVED] Spawning a dynamic light only visible for X player?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
TheCamaleonMaligno
Posts: 85
Joined: Sun Jun 28, 2015 3:25 pm
Location: Frozen igloo, IN MIDDLE OF THE DESERT!!
Contact:

[SOLVED] Spawning a dynamic light only visible for X player?

Post by TheCamaleonMaligno »

as the title says, what i want to do is to make my player to spawn a dynamic light only visible for him, is it possible with ZScript?

EDIT: nvm, after 162 days without responses, i figured out by myself:

Code: Select all

if(PlayerNumber() == consoleplayer)
{	
	//spawn stuff
}
Post Reply

Return to “Scripting”