Skip to content

EasyLogic Line 2120, ONUSE Event #6

Description

@guljam

::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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions