::VSLib.EasyLogic.Events.OnGameEvent_player_use <- function (params)
{
local ents = ::VSLib.EasyLogic.GetPlayersFromEvent(params);
This line ---------> "local targetid = ::VSLib.EasyLogic.GetEventPlayer(params, "targetid");"
local _id = ents.entity.GetIndex();
if(_id in ::VSLib.EasyLogic.Cache)
::VSLib.EasyLogic.Cache[_id]._lastUse <- targetid;
foreach (func in ::VSLib.EasyLogic.Notifications.OnUse)
func(ents.entity, targetid, params);
}
Can "targetid" be a VSlib player?
I think this should use the "GetEventEntity" function.
but, OnUse event has not issued an error so far.
::VSLib.EasyLogic.Events.OnGameEvent_player_use <- function (params)
{
local ents = ::VSLib.EasyLogic.GetPlayersFromEvent(params);
This line ---------> "local targetid = ::VSLib.EasyLogic.GetEventPlayer(params, "targetid");"
}
Can "targetid" be a VSlib player?
I think this should use the "GetEventEntity" function.
but, OnUse event has not issued an error so far.