GetAllEntityData: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Gets all keys set in the server's entity data, set with SetEntityData. ==Syntax== <syntaxhighlight lang="C#" >string[] NAPI.Data.GetAllEntityData(NetHandle entity);</synt...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Gets all keys set in the server's entity data, set with [[SetEntityData]].
Gets all keys set in the server's entity data, set with SetEntityData.


==Syntax==
==Syntax==
<syntaxhighlight lang="C#" >string[] NAPI.Data.GetAllEntityData(NetHandle entity);</syntaxhighlight>
<syntaxhighlight lang="C#" >string[] NAPI.Data.GetAllEntityData(Entity entity);</syntaxhighlight>


'''Required Arguments'''
'''Required Arguments'''
*'''entity:''' parameter input should be in '''NetHandle''' type.
*'''entity:''' parameter input should be in '''Entity''' type.


'''NOTE:''' This function returns an array of '''string[]''' type.
'''NOTE:''' This function returns an array of '''string[]''' type.

Latest revision as of 19:32, 22 December 2022

Gets all keys set in the server's entity data, set with SetEntityData.

Syntax

string[] NAPI.Data.GetAllEntityData(Entity entity);

Required Arguments

  • entity: parameter input should be in Entity type.

NOTE: This function returns an array of string[] type.

Usage example(s)

string[] keys = NAPI.Data.GetAllEntityData(entity);
foreach (string key in keys) {
  NAPI.Util.ConsoleOutput("\"{0}\": \"{1}\"", key, NAPI.Data.GetEntityData(entity, key));
}