New test gm scripts to help with positioning populace npcs

This commit is contained in:
Filip Maj 2022-02-13 18:50:48 -05:00
parent 214d730a58
commit 8d5f4465e3
3 changed files with 95 additions and 0 deletions

View file

@ -0,0 +1,23 @@
require("global");
properties = {
permissions = 0,
parameters = "",
description =
[[
Changes appearance for equipment with given parameters.
!graphic <slot> <wID> <eID> <vID> <vID>
]],
}
function onTrigger(player, argc)
local messageID = MESSAGE_TYPE_SYSTEM_ERROR;
local sender = "[changetonpc] ";
local npc = player.CurrentArea:FindActorInArea(player.currentTarget);
if npc then
player:ChangeIntoNpc(npc);
end
end