New Spawn Script LUA Event: can_use_command

Discussions on development of both the EQ2Emulator LUA Script Engine and Script specifications

Moderator: Team Members

Post Reply
Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

New Spawn Script LUA Event: can_use_command

Post by Jabantiz » Sat Feb 20, 2016 11:16 pm

This is basically a precast for entity commands, will check the spawn you are using the entity command on to see if you can actually use the command. An example usage is a door that you can click on and highlights but can't be opened until an event or quest has been completed and before that happens it gives you a message saying you can't open the door

Code: Select all

function can_use_command(Spawn, Player, Command)
end
Spawn is the spawn the entity command is being used on
Player is the player using the command
Command is the name of the entity command

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest