Difference between revisions of "Native function"

From GTAMods Wiki
Jump to navigation Jump to search
m
(wikification)
Line 1: Line 1:
Native function is a specific parameter used in [[GTA IV]] and [[GTA V]] script engine that perform various tasks. There is a "call" opcode for calling natives.
+
Native function is a specific parameter used in [[GTA IV]] and [[GTA V]] script engine that perform various tasks. There is [[SCO#Opcodes|a "call" opcode]] for calling natives.
  
 
== GTA IV ==
 
== GTA IV ==
There are something like ~3000 of natives in GTA IV. Comparing to the scm-engine from previous GTA 3D series, which had one native to one opcode assigned, [[RAGE]] has less than 100 opcodes and they look like a real assembler, there is only one opcode for native calling. Native to call is the param of this opcode, this param is a hash of the native name.
+
There are something like [[List of native functions (GTA IV)|~3000 of natives in GTA IV]]. Comparing to the scm-engine from previous GTA 3D series, which had one native to one opcode assigned, [[RAGE]] has less than 100 opcodes and they look like a real assembler, there is only one opcode for native calling. Native to call is the param of this opcode, this param is a hash of the native name.
  
 
== GTA V ==
 
== GTA V ==
 
GTA V features ~4500 natives and almost all of these functions are in use in the original game scripts, this means that while building game's main executable only the natives required by the scripts are included (IV scripts were using only 2/3 of them). There is no original native name list in GTA V (IV had one), name hashes were used instead.
 
GTA V features ~4500 natives and almost all of these functions are in use in the original game scripts, this means that while building game's main executable only the natives required by the scripts are included (IV scripts were using only 2/3 of them). There is no original native name list in GTA V (IV had one), name hashes were used instead.
  
== See Also ==
+
== See also ==
 +
*[[GTA V Native declarations]]
 +
* [[Scocl]] - a SCO compiler for GTA IV by {{U|Alexander Blade}}
  
*[[List of native functions (GTA IV)]]
+
==External links ==
*[[GTA V Native declarations]]
+
* {{Icon|4}} {{GTAF|387783|Generic GTA 4 documentation}}
*Scocl on [http://gtaforums.com/topic/492143-gta-iveflcrel-scocl/ gtaforums] has some explanation
+
* {{Icon|5}} {{GTAF|717612|Script/Native Documentation}}
*[http://gtaforums.com/topic/717612-scriptnative-documentation-and-research/ GTA V Research]
 
  
[[Category:GTA 4]]
+
{{N|5|4}}
[[Category:GTA 5]]
 
 
[[Category:Mission Script]]
 
[[Category:Mission Script]]

Revision as of 13:18, 23 August 2014

Native function is a specific parameter used in GTA IV and GTA V script engine that perform various tasks. There is a "call" opcode for calling natives.

GTA IV

There are something like ~3000 of natives in GTA IV. Comparing to the scm-engine from previous GTA 3D series, which had one native to one opcode assigned, RAGE has less than 100 opcodes and they look like a real assembler, there is only one opcode for native calling. Native to call is the param of this opcode, this param is a hash of the native name.

GTA V

GTA V features ~4500 natives and almost all of these functions are in use in the original game scripts, this means that while building game's main executable only the natives required by the scripts are included (IV scripts were using only 2/3 of them). There is no original native name list in GTA V (IV had one), name hashes were used instead.

See also

External links