Difference between revisions of "MDE Scripting: Entities"

From Nomad DB
Line 75: Line 75:
 
==Vehicle==
 
==Vehicle==
 
{| class="wikitable"
 
{| class="wikitable"
 +
!Tip
 +
|Theses functions work for [[#Boat|Boat]], [[#Car|Car]] and [[#Motorcycle|Motorcycle]] ''(only the [[MDE Scripting: Snippets#Get the Player's current Vehicle entity|SceneObject]], '''not''' the [[MDE Scripting: Snippets#Get the Vehicle's current Motorcycle component|component]])''.
 +
|-
 
!How to
 
!How to
 
|[[MDE Scripting: Snippets#Get the Player's current Vehicle entity|Get the Player's current Vehicle entity]]
 
|[[MDE Scripting: Snippets#Get the Player's current Vehicle entity|Get the Player's current Vehicle entity]]
 
|}
 
|}
* [[MDE Scripting: GetVehicleModelName|Vehicle:GetVehicleModelName]]
 
 
*WIP
 
*WIP
  
  
===Car===
+
==Boat==
 +
{| class="wikitable"
 +
!How to
 +
|[[MDE Scripting: Snippets#Get the Player's current Vehicle entity|Get the Player's current Boat entity]]
 +
|}
 +
* [[MDE Scripting: GetVehicleModelName|Boat:GetVehicleModelName]]
 +
*WIP
 +
 
  
 +
==Car==
 +
{| class="wikitable"
 +
!How to
 +
|[[MDE Scripting: Snippets#Get the Player's current Vehicle entity|Get the Player's current Car entity]]
 +
|}
 +
* [[MDE Scripting: GetVehicleModelName|Car:GetVehicleModelName]]
 
*WIP
 
*WIP
  
  
===Motorcycle===
+
==Motorcycle==
 
{| class="wikitable"
 
{| class="wikitable"
 
!Tip
 
!Tip
Line 93: Line 108:
 
|-
 
|-
 
!How to
 
!How to
|[[MDE Scripting: Snippets#Get the Player's current Motorcycle component|Get the Player's current Motorcycle component]]
+
|[[MDE Scripting: Snippets#Get the Vehicle's current Motorcycle component|Get the Vehicle's current Motorcycle component]]
 
|}
 
|}
 
*[[MDE Scripting: AddNavModePathWaypoint|Motorcycle:AddNavModePathWaypoint]]
 
*[[MDE Scripting: AddNavModePathWaypoint|Motorcycle:AddNavModePathWaypoint]]

Revision as of 04:53, 17 October 2020

Common

Tip All entities are SceneObject. They extends of C_SceneObjectLuaWrapper.

Human

  • WIP


Player

How to Get the Player entity


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