#248 LUA Support for using a door (widget)

Lezárt
megnyitva ekkor: 3 éve image által · 0 hozzászólás
image hozzászólt 3 éve
  • new SpawnScripts function 'usedoor' function usedoor(NPC, Spawn, IsOpen) LUA Functions additionally needed:
  • OpenDoor, CloseDoor, IsOpen

Example script:

function usedoor(NPC, Spawn, IsOpen)
    if IsOpen == true then
        if Spawn then
            SendMessage(Spawn, "Door was open", "red")
        end
        
        CloseDoor(NPC)
    else
        if Spawn then
            SendMessage(Spawn, "Door was closed", "red")
        end
        
        OpenDoor(NPC)
    end
end
- new SpawnScripts function 'usedoor' ```function usedoor(NPC, Spawn, IsOpen)``` LUA Functions additionally needed: - OpenDoor, CloseDoor, IsOpen Example script: ``` function usedoor(NPC, Spawn, IsOpen) if IsOpen == true then if Spawn then SendMessage(Spawn, "Door was open", "red") end CloseDoor(NPC) else if Spawn then SendMessage(Spawn, "Door was closed", "red") end OpenDoor(NPC) end end ```
image lezárta ekkor: 3 éve
Jelentkezzen be hogy csatlakozhasson a beszélgetéshez.
Töltés...
Mégse
Mentés
Még nincs tartalom.