Difference between revisions of "GET SCRIPT TASK STATUS"

From GTAMods Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Native
 
{{Native
|np=3
+
|np=2
|p1t=unknown
+
|p1t=Entity
|p1d=Unknown
+
|p1d=Entity
 
|p2t=unknown
 
|p2t=unknown
|p2d=Unknown
+
|p2d=Likely: The task in question, appears hashed
|p3t=unknown
+
|r=1
|p3d=Unknown
+
|rt=Int
|r=0
+
|rd=Appears to be int codes of task status, e.g, 0, 1, 7 
 +
1 is used 45%, 0 is used 45% and 7 is used 10%
 
}}
 
}}
 +
  
 
Presumably gets the status of a task executed by a script.
 
Presumably gets the status of a task executed by a script.
 +
 +
== Example ==
 +
 +
<code>
 +
if (AI::GET_SCRIPT_TASK_STATUS(PLAYER::PLAYER_PED_ID(), 0x7D8F4411) == 1))
 +
</code>

Latest revision as of 23:36, 5 May 2015

GET_SCRIPT_TASK_STATUS
Number of parameters: 2
Parameter #TypeDescription
1.EntityEntity
2.unknownLikely: The task in question, appears hashed
Return value:
TypeDescription
IntAppears to be int codes of task status, e.g, 0, 1, 7 1 is used 45%, 0 is used 45% and 7 is used 10%


Presumably gets the status of a task executed by a script.

Example

if (AI::GET_SCRIPT_TASK_STATUS(PLAYER::PLAYER_PED_ID(), 0x7D8F4411) == 1))