:DitoLand
Studio ManualAPI ReferenceVideo TutorialSample
  • DitoLand Developer
  • πŸ“šGlossary
  • πŸ₯³EVENT
    • 2024 λ©”νƒ€λ²„μŠ€ 개발자 κ²½μ§„λŒ€νšŒ
    • 🎊[μ’…λ£Œ] πŸ–₯ μ „λ‚¨κ΄€κ΄‘λ©”νƒ€λ²„μŠ€ μŠ€νƒ¬ν”„ νˆ¬μ–΄ 인증 이벀트
  • Notice
    • μ•½κ΄€ κ°œμ •(2024.06.17)
    • μ•½κ΄€ κ°œμ • (2024.03.04)
    • μ•½κ΄€ κ°œμ • (2023.08.25)
    • μ•½κ΄€ κ°œμ • (2022.12.14)
  • Manual
    • Studio
    • Resources
    • Studio Workflow Tips
    • NPC
    • NavMeshVolume
    • Land Teleport
    • Enterprise Account
    • Enterprise Studio Manual
    • Coroutine
    • AddTimeEvent
    • SaveUserData
    • Set Object Parameter
    • Toolbox Upload
    • Debugging (Breakpoint)
    • Gun Toy
    • Coupon / Event Key
    • Optimization
    • AI FSM
    • SpreadSheet
    • Mod Kit
    • AddReplicateValue / ConnectChangeEventFunction
    • Event Execution Order
    • WorldTree Search Filter
    • Object
    • Coordinate
    • Inworld Product
    • Management UserData & Leaderboard
    • Channel
    • World Event
    • Matchmaking
    • Collecting Game Logs
    • External Avatar
  • Coding Style
  • API Reference
    • Global
      • Variables
    • Lua
      • Built-in
      • NotSupport
    • Enums
      • AttachPoint
      • Bone
      • CharacterType
      • ChatCategoryType
      • ChatVisibleType
      • CollisionResponse
      • ControlMode
      • DivideTeamType
      • EventKeyState
      • InputMode
      • InventoryState
      • Key
      • KeyInputType
      • LuckyDrawOrderState
      • MaterialType
      • MediaStateType
      • ModeAnimStateType
      • ObjectSelectType
      • ObjectType
      • PathFollowingStatus
      • PointSpawnType
      • ProgressFillType
      • ProjectionType
      • QuickSlotState
      • ReplicateType
      • ScrollOrientationType
      • SimulatePhysicsType
      • SpawnType
      • TeamType
      • TeleportErrorType
      • TouchType
      • TransformPlayType
      • UIDisplayType
      • UIWidgetType
      • WidgetAnchorType
    • Common
      • BindEvent
      • Character
      • Collision
      • Color
      • CouponReturnData
      • DateTime
      • Environment
      • EventKeyReturnData
      • FactorPhysics
      • FiniteState
      • FiniteStateMachine
      • Game
      • GameStatisticsData
      • HitResult
      • Item
      • LandTransferData
      • Matrix
      • MouseHitResult
      • Object
      • Physics
      • ScriptPhase
      • TimeEvent
      • Track
      • Vector
      • WorldObject
    • Client
      • AnimStateBase
      • AnimStateMachine
      • AnimStateMachineSetting
      • BlendAnimationDataSetting
      • BlendAnimState
      • BlendAnimStateSetting
      • Button
      • Camera
      • CameraClient
      • Character
      • CharacterAnimationSetting
      • CharacterAppearanceSetting
      • CharacterBaseSetting
      • CharacterClient
      • CharacterSetting
      • Collider
      • Collision
      • DPad
      • Environment
      • FiniteStateMachine
      • Frame
      • FX
      • Game
      • GridBox
      • HyperLinkButton
      • Image
      • Input
      • InputGroup
      • InventoryBox
      • Item
      • ListView
      • LocalPlayer
      • Media
      • MediaView
      • NPC
      • ObjectGroup
      • ObjectNoneClient
      • PDFView
      • Physics
      • PointLight
      • ProgressBar
      • RemotePlayer
      • ScreenButton
      • ScreenUI
      • Script
      • ScrollBox
      • SequenceAnimState
      • SequenceAnimStateSetting
      • Sound
      • SpotLight
      • StaticMesh
      • SurfaceUI
      • Text
      • TextBox
      • UIScene
      • WebBrowser
      • WebForum
      • WidgetBase
      • YouTubeView
    • Server
      • Character
      • CharacterAnimationSetting
      • CharacterAppearanceSetting
      • CharacterBaseSetting
      • CharacterServer
      • CharacterSetting
      • Collider
      • Collision
      • Environment
      • FactorPhysics
      • FiniteStateMachine
      • FX
      • Game
      • Item
      • Media
      • NPC
      • Physics
      • Player
      • PointLight
      • Script
      • ScriptObjectGroup
      • ScriptObjectNoneServer
      • Sound
      • Spawner
      • SpawnPoint
      • SpawnPointGroup
      • SpotLight
      • StaticMesh
      • Team
      • UIScene
      • Widget
  • Tutorial
    • Script Tutorial
      • 슀크립트 심화 κ°•μ’Œ
        • 1. 슀크립트의 μ’…λ₯˜, 호좜 μˆœμ„œ, 호좜, 톡신
        • 2. 동기화, νŒŒλΌλ―Έν„°, μ˜ˆμ™Έμ‚¬ν•­
        • 3. λ””ν† λžœλ“œλ‘œ 루아 ν™œμš©ν•˜κΈ°
  • Sample
    • Scripting
    • Event
    • Collision & Physics
    • Transform
    • UI
    • Camera
    • Input
    • FX
    • Sound
  • Guide for Developers
    • Guide For Unity Developer
    • Guide For Roblox Developer
  • Release Note
    • Script Changes
      • 1.5.0 Map Changes
      • 1.2.0 Map Changes
      • 1.1.0 Map Changes
      • 1.0.0 Map Changes
      • 0.9.0 Map Changes
      • 0.7.0 Map Changes
      • 0.6.0 Map Changes
      • 0.5.0 Map Changes
      • 0.4.0 Map Changes
      • 0.3.0 Map Changes
      • 0.2.0 Map Changes
    • Known Issues
Powered by GitBook
On this page
  • Item
  • ν•¨μˆ˜
  • μ‚¬μš© κ°€λŠ₯ν•œ λΆ€λͺ¨ 였브젝트 κΈ°λŠ₯λ“€
  • 속성
  • 이벀트
  • ν•¨μˆ˜

Was this helpful?

  1. API Reference
  2. Client

Item

PreviousInventoryBoxNextListView

Last updated 1 year ago

Was this helpful?

Item

ν΄λΌμ΄μ–ΈνŠΈμ—μ„œ μ‚¬μš©λ˜λŠ” μ•„μ΄ν…œ κ°œμ²΄μ—μš”

ν•¨μˆ˜

void Detach()

(deprecated) ν”Œλ ˆμ΄μ–΄ 캐릭터에 λΆ™μ–΄ μžˆλŠ” μ•„μ΄ν…œμ„ ν•΄μ œν•  수 μžˆμ–΄μš”.

void AddAction(string ActionName, number ActionCoolTime, bool bActionWhileKeyDown, function ActionFunction, Key ActionKeys)

(deprecated) AddKeyAction ν•¨μˆ˜λ‘œ μ‚¬μš©ν•˜μ„Έμš”.

void AddKeyAction(string ActionName, number ActionCoolTime, bool bActionWhileKeyDown, function ActionFunction, Key ActionKeys)

μ•„μ΄ν…œμ„ 착용 ν›„ μ•‘μ…˜ μΆ”κ°€ν•΄μš”. (μ•‘μ…˜ 이름, μ•‘μ…˜ μ‹€ν–‰ ν•  , ν•΄λ‹Ή μ•‘μ…˜μ˜ μΏ¨νƒ€μž„, μžλ™ μ•‘μ…˜ μ—¬λΆ€, μ—°κ²° ν•¨μˆ˜)

-- μƒ˜ν”Œ --

local item = Script.Parent
local coolTime = 0
local isActionWhileKeyDown = true

local function StartClick(player, curCameraPos , curCameraForward) --ν΄λ¦­μ‹œ ν˜ΈμΆœν•  ν•¨μˆ˜μ—μš”.
    print("Fire!")
end

local function EndClick(player, curCameraPos , curCameraForward) --클릭이 λλ‚¬μ„λ•Œ ν˜ΈμΆœν•  ν•¨μˆ˜μ—μš”.
    print("End Click!")
end

item:AddAction("Fire", coolTime, isActionWhileKeyDown, StartClick, Enum.Key.LeftMouseButton) --μ•„μ΄ν…œμ— ν‚€ μž…λ ₯μ‹œ ν˜ΈμΆœν•  ν•¨μˆ˜λ₯Ό μ—°κ²°ν•΄μš”.
item:AddToggleAction("CheckAction", coolTime, StartClick, EndClick, Enum.Key.LeftMouseButton) --μ•„μ΄ν…œμ— 착용 ν›„ ν† κΈ€ μ•‘μ…˜μ„ μΆ”κ°€ν•΄μš”.

void AddToggleAction(string ActionName, number ActionCoolTime, function StartFunction, function EndFunction, Key ActionKeys)

(deprecated) AddToggleKeyAction ν•¨μˆ˜λ‘œ μ‚¬μš©ν•˜μ„Έμš”.

void AddToggleKeyAction(string ActionName, number ActionCoolTime, function StartFunction, function EndFunction, Key ActionKeys)

μ•„μ΄ν…œ 착용 ν›„ ν† κΈ€ μ•‘μ…˜μ„ μΆ”κ°€ν•΄μš”. (μ•‘μ…˜ 이름, μ•‘μ…˜ μΏ¨νƒ€μž„, μ•‘μ…˜ μ‹œμž‘ μ‹œ μ—°κ²° ν•¨μˆ˜, μ•‘μ…˜ μ’…λ£Œ μ‹œ μ—°κ²° ν•¨μˆ˜)

-- μƒ˜ν”Œ --

local item = Script.Parent
local coolTime = 0
local isActionWhileKeyDown = true

local function StartClick(player, curCameraPos , curCameraForward) --ν΄λ¦­μ‹œ ν˜ΈμΆœν•  ν•¨μˆ˜μ—μš”.
    print("Fire!")
end

local function EndClick(player, curCameraPos , curCameraForward) --클릭이 λλ‚¬μ„λ•Œ ν˜ΈμΆœν•  ν•¨μˆ˜μ—μš”.
    print("End Click!")
end

item:AddAction("Fire", coolTime, isActionWhileKeyDown, StartClick, Enum.Key.LeftMouseButton) --μ•„μ΄ν…œμ— ν‚€ μž…λ ₯μ‹œ ν˜ΈμΆœν•  ν•¨μˆ˜λ₯Ό μ—°κ²°ν•΄μš”.
item:AddToggleAction("CheckAction", coolTime, StartClick, EndClick, Enum.Key.LeftMouseButton) --μ•„μ΄ν…œμ— 착용 ν›„ ν† κΈ€ μ•‘μ…˜μ„ μΆ”κ°€ν•΄μš”.

μ‚¬μš© κ°€λŠ₯ν•œ λΆ€λͺ¨ 였브젝트 κΈ°λŠ₯λ“€

속성

이름

μ„€λͺ…

객체 ν™œμ„±ν™” μ—¬λΆ€

객체의 Matrix

객체의 Local Transform

객체의 μœ„μΉ˜ Vector

객체의 λ‘œμ»¬μ’Œν‘œ Vector

객체의 νšŒμ „ Vector

객체의 둜컬 νšŒμ „ Vector

객체의 크기 Vector

객체의 κ°€μ‹œμ„±

이벀트

이름

μ„€λͺ…

μ•„μ΄ν…œ μ‚¬μš© μ‹œ ν˜ΈμΆœλ˜λŠ” μ΄λ²€νŠΈμ—μš”. μ—°κ²°ν•¨μˆ˜ ν˜•μ‹μ€ function(usePlayer), usePlayer λŠ” Player 객체 μž…λ‹ˆλ‹€.

μ•„μ΄ν…œ μž₯μ°© μ‹œ ν˜ΈμΆœλ˜λŠ” μ΄λ²€νŠΈμ—μš”. μ—°κ²°ν•¨μˆ˜ ν˜•μ‹μ€ function(equipPlayer), equipPlayer λŠ” Player 객체 μž…λ‹ˆλ‹€.

μ•„μ΄ν…œ νƒˆμ°© μ‹œ ν˜ΈμΆœλ˜λŠ” μ΄λ²€νŠΈμ—μš”. μ—°κ²°ν•¨μˆ˜ ν˜•μ‹μ€ function(unequipPlayer), unequipPlayer λŠ” Player 객체 μž…λ‹ˆλ‹€.

생성 ν›„ λ§€ ν”„λ ˆμž„λ§ˆλ‹€ ν˜ΈμΆœλ˜λŠ” μ΄λ²€νŠΈμ—μš”. μ—°κ²°ν•¨μˆ˜ ν˜•μ‹μ€ function(updateTime), updateTime 은 number μž…λ‹ˆλ‹€.

μ‚­μ œλ  λ•Œ ν˜ΈμΆœλ˜λŠ” μ΄λ²€νŠΈμ—μš”. μ—°κ²°ν•¨μˆ˜ ν˜•μ‹μ€ function() μž…λ‹ˆλ‹€.

Enable λ λ•Œ ν˜ΈμΆœλ˜λŠ” μ΄λ²€νŠΈμ—μš”. μ—°κ²°ν•¨μˆ˜ ν˜•μ‹μ€ function() μž…λ‹ˆλ‹€.

Disable λ λ•Œ ν˜ΈμΆœλ˜λŠ” μ΄λ²€νŠΈμ—μš”. μ—°κ²°ν•¨μˆ˜ ν˜•μ‹μ€ function() μž…λ‹ˆλ‹€.

ν•¨μˆ˜

이름

μ„€λͺ…

μ•„μ΄ν…œμ˜ 개수λ₯Ό 얻을 수 μžˆμ–΄μš”.

ν˜„μž¬ μ•„μ΄ν…œ μž₯μ°©μƒνƒœμΈμ§€λ₯Ό 확인 ν•  수 μžˆμ–΄μš”.

μ•„μ΄ν…œμ— μ„€μ •ν•œ ν•΄λ‹Ή μ•‘μ…˜μ˜ μΏ¨νƒ€μž„μ„ 얻을 수 μžˆμ–΄μš”. (μ„€μ •ν•  μ•‘μ…˜ 이름)

μ•„μ΄ν…œμ— μ„€μ •ν•œ ν•΄λ‹Ή μ•‘μ…˜μ˜ μΏ¨νƒ€μž„μ„ μ„€μ •ν•  수 μžˆμ–΄μš”. (μ„€μ •ν•  μ•‘μ…˜ 이름, μ„€μ •ν•˜κ³  싢은 μ‹œκ°„)

ν•΄λ‹Ή μ•„μ΄ν…œμ˜ μž₯μ°© μŠ¬λ‘―μ„ κ°€μ Έμ˜¬ 수 μžˆμ–΄μš”.

****

μ•„μ΄ν…œ 착용 ν›„ μ•‘μ…˜μ„ μΆ”κ°€ν•΄μš”. (μ•‘μ…˜ 이름, ν•΄λ‹Ή μ•‘μ…˜μ˜ μΏ¨νƒ€μž„, μ—°κ²° ν•¨μˆ˜)

μ•„μ΄ν…œ 착용 ν›„ ν† κΈ€ μ•‘μ…˜μ„ μΆ”κ°€ν•΄μš”. (μ•‘μ…˜ 이름, μ•‘μ…˜ μΏ¨νƒ€μž„, μ•‘μ…˜ μ‹œμž‘ μ‹œ μ—°κ²° ν•¨μˆ˜, μ•‘μ…˜ μ’…λ£Œ μ‹œ μ—°κ²° ν•¨μˆ˜)

객체의 ν‚€ 값을 얻을 수 μžˆμ–΄μš”.

ν˜„μž¬ λ§€νŠΈλ¦­μŠ€μ—μ„œ μ„€μ • 된 맀트릭슀둜 보간이 λ˜λŠ” 맀트릭슀λ₯Ό μ„€μ •ν•  수 μžˆμ–΄μš” μ„€μ •ν•  수 μžˆμ–΄μš”. (Matrix κ°’, bool 좩돌 처리 μ—¬λΆ€)

ν˜„μž¬ λ§€νŠΈλ¦­μŠ€μ—μ„œ μ„€μ • 된 맀트릭슀둜 보간이 λ˜λŠ” 맀트릭슀λ₯Ό λ‘œμ»¬μ’Œν‘œκΈ°μ€€μœΌλ‘œ μ„€μ •ν•  수 μžˆμ–΄μš” μ„€μ •ν•  수 μžˆμ–΄μš”. (Matrix κ°’, bool 좩돌 처리 μ—¬λΆ€)

μˆœκ°„μ΄λ™ ν•˜λŠ” 맀트릭슀λ₯Ό μ„€μ •ν•  수 μžˆμ–΄μš”. (Matrix κ°’)

객체의 μœ„μΉ˜λ₯Ό μ„€μ •ν•  수 μžˆμ–΄μš”. (μ„€μ •ν•  μœ„μΉ˜ Vector κ°’, 좩돌 처리 μ—¬λΆ€)

객체의 tagλ₯Ό μ„€μ •ν•΄μš”. (μ„€μ •ν•  tag)

객체에 μ„€μ •λœ tagλ₯Ό 얻을 수 μžˆμ–΄μš”.

μœ μ €κ°€ μΆ”κ°€ν•œ 였브젝트 μ»€μŠ€ν…€ μ΄λ²€νŠΈμ— ν•¨μˆ˜λ₯Ό μ—°κ²°ν•  수 μžˆμ–΄μš”. (이벀트 이름, μ—°κ²° ν•¨μˆ˜)

μ˜€λΈŒμ νŠΈκ°€ ν•΄λ‹Ήν•˜λŠ” μœ„μΉ˜λ₯Ό λ°”λΌλ³΄κ²Œ ν•  수 μžˆμ–΄μš”. (바라볼 μœ„μΉ˜ Vector)

Enum.Key.ν‚€
Enable
Transform
LocalTransform
Location
LocalLocation
Rotation
LocalRotation
Scale
Visible
UseEvent
EquipEvent
UnEquipEvent
OnUpdateEvent
OnDestroyEvent
OnEnableEvent
OnDisableEvent
GetItemCount
IsEquiped
GetActionCoolTime
SetActionCoolTime
GetEquipSlot
GetIconImg
AddAction
AddToggleAction
GetKey
SetTransformWithCollisionCheck
SetLocalTransformWithCollisionCheck
Teleport
SetLocationWithCollisionCheck
SetTag
GetTag
ConnectEventFunction
LookAt