Jump to content

zoot

Community Members
  • Posts

    1.557
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by zoot

  1. Exactly (or something very close to that, depending on what works out for you).

    It's a detail, but you'd need to enclose both lines in the 'if' context:


    else if (notification.type == "attack")
    {
    if (notification.player == Engine.GetPlayerID()) {
    Engine.GuiInterfaceCall("PlaySound", { "name":"attacked", "entity": notification.message.target });
    Engine.PingMinimap({ "entity": notification.message.target });
    }
    }

    • Like 1
  2. Yes, an "interface" in this context is a simulation component interface. Engine.QueryInterface() acquires a reference to a particular interface of a particular entity. (Though, to be honest I know little of how it actually does that, I just use it ;))

    Some assorted background info: http://svn.wildfiregames.com/docs/writing-components.html

    Elements like <AttackDetection/> in templates are references to components, yes.

×
×
  • Create New...