Difference between revisions of "MDE Scripting: Entities"

From Nomad DB
m
m
Line 57: Line 57:
 
*[[MDE Scripting: StopDynamicMove|Common:StopDynamicMove]]
 
*[[MDE Scripting: StopDynamicMove|Common:StopDynamicMove]]
 
*[[MDE Scripting: Unblock|Common:Unblock]]
 
*[[MDE Scripting: Unblock|Common:Unblock]]
 +
 +
 +
==Camera==
 +
 +
*WIP
 +
  
 
==Human==
 
==Human==
Line 78: Line 84:
 
* [[MDE Scripting: GetType|Player:GetType]]
 
* [[MDE Scripting: GetType|Player:GetType]]
 
*WIP
 
*WIP
 +
 +
 +
==Props==
 +
 +
*WIP
 +
  
 
==Vehicle==
 
==Vehicle==
Line 175: Line 187:
 
*[[MDE Scripting: UnlockPlayerEntryPointForSeatID|Motorcycle:UnlockPlayerEntryPointForSeatID]]
 
*[[MDE Scripting: UnlockPlayerEntryPointForSeatID|Motorcycle:UnlockPlayerEntryPointForSeatID]]
 
*[[MDE Scripting: UnlockPlayerEntryPoints|Motorcycle:UnlockPlayerEntryPoints]]
 
*[[MDE Scripting: UnlockPlayerEntryPoints|Motorcycle:UnlockPlayerEntryPoints]]
*[[MDE Scripting: UnregisterProblemCallback|Motorcycle:UnregisterProblemCallback]]
+
*[[MDE Scripting: UnregisterProblemCallback|Motorcycle:UnregisterProblemCallback]
 
 
==Camera==
 
 
 
*WIP
 
 
 
 
 
==Props==
 
 
 
*WIP
 
 
 
  
  

Revision as of 01:22, 6 November 2020

Common

Tip All entities are SceneObject. They extends of C_SceneObjectLuaWrapper.


Camera

  • WIP


Human

  • WIP


Player

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


Props

  • WIP


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