Difference between revisions of "MDE Scripting: Entities"

From Nomad DB
Line 145: Line 145:
 
|[[MDE Scripting: C_KitComponent|C_KitComponent]], [[MDE Scripting: C_RuntimeActorActionComponent|C_RuntimeActorActionComponent]], [[MDE Scripting: C_TagComponent|C_TagComponent]]
 
|[[MDE Scripting: C_KitComponent|C_KitComponent]], [[MDE Scripting: C_RuntimeActorActionComponent|C_RuntimeActorActionComponent]], [[MDE Scripting: C_TagComponent|C_TagComponent]]
 
|}
 
|}
* [[MDE Scripting: GetType|Boat:GetType]]
+
*[[MDE Scripting: GetGUID|Boat:GetGUID]]
* [[MDE Scripting: GetVehicleModelName|Boat:GetVehicleModelName]]
+
*[[MDE Scripting: GetType|Boat:GetType]]
 +
*[[MDE Scripting: GetVehicleModelName|Boat:GetVehicleModelName]]
 
*WIP
 
*WIP
  
Line 160: Line 161:
 
|[[MDE Scripting: C_KitComponent|C_KitComponent]], [[MDE Scripting: C_RuntimeActorActionComponent|C_RuntimeActorActionComponent]], [[MDE Scripting: C_TagComponent|C_TagComponent]]
 
|[[MDE Scripting: C_KitComponent|C_KitComponent]], [[MDE Scripting: C_RuntimeActorActionComponent|C_RuntimeActorActionComponent]], [[MDE Scripting: C_TagComponent|C_TagComponent]]
 
|}
 
|}
* [[MDE Scripting: GetType|Car:GetType]]
+
*[[MDE Scripting: GetGUID|Car:GetGUID]]
* [[MDE Scripting: GetVehicleModelName|Car:GetVehicleModelName]]
+
*[[MDE Scripting: GetType|Car:GetType]]
 +
*[[MDE Scripting: GetVehicleModelName|Car:GetVehicleModelName]]
 
*WIP
 
*WIP
  

Revision as of 02:47, 6 November 2020

Common

Tip All entities are SceneObject. They extends of C_SceneObjectLuaWrapper.


Camera

  • WIP


Door

Entity type N/A
Components C_ModelComponent, C_RuntimeActorActionComponent, C_RuntimeDoorComponent (not available on every door), C_TagComponent
  • WIP


Human

Tip Theses functions work for Player.
Entity type 8
Components C_ModelComponent, C_TagComponent


Player

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

Props

  • WIP


Spawner

Entity type 65
Components C_ObjectListComponent, C_RuntimeSpawnerComponent


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
Entity type 27
Components C_KitComponent, C_RuntimeActorActionComponent, C_TagComponent

Car

How to Get the Player's current Car entity
Entity type 10
Components C_KitComponent, C_RuntimeActorActionComponent, C_TagComponent

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
Entity type N/A
Components C_KitComponent, C_ModelComponent, C_RuntimeActorActionComponent, C_RuntimeMotorcycleComponent, C_TagComponent