Difference between revisions of "MDE Scripting: Entities"

From Nomad DB
Line 67: Line 67:
 
!How to
 
!How to
 
|[[MDE Scripting: Snippets#Get the Player entity|Get the Player entity]]
 
|[[MDE Scripting: Snippets#Get the Player entity|Get the Player entity]]
 +
|-
 +
!Entity type
 +
|[[MDE Scripting: Enums#EntityType|9]]
 +
|-
 +
!Components
 +
|[[MDE Scripting: C_InteractionParticipantComponent|C_InteractionParticipantComponent]], [[MDE Scripting: C_ModelComponent|C_ModelComponent]], [[MDE Scripting: C_TagComponent|C_TagComponent]]
 
|}
 
|}
  
Line 72: Line 78:
 
* [[MDE Scripting: GetOwnerSceneObject|Player:GetOwnerSceneObject]]
 
* [[MDE Scripting: GetOwnerSceneObject|Player:GetOwnerSceneObject]]
 
*WIP
 
*WIP
 
  
 
==Vehicle==
 
==Vehicle==

Revision as of 23:52, 5 November 2020

Common

Tip All entities are SceneObject. They extends of C_SceneObjectLuaWrapper.

Human

  • WIP


Player

How to Get the Player entity
Entity type 9
Components C_InteractionParticipantComponent, C_ModelComponent, C_TagComponent

Vehicle

Tip Theses functions work for Boat, Car and Motorcycle (only the SceneObject, not the component).
How to Get the Player's current Vehicle entity
  • WIP


Boat

How to Get the Player's current Boat entity


Car

How to Get the Player's current Car entity


Motorcycle

Tip You need to get the C_RuntimeMotorcycleComponent component from the Vehicle SceneObject to use theses functions.
How to Get the Vehicle's current Motorcycle component

Camera

  • WIP


Props

  • WIP