Difference between revisions of "0568"

From GTAMods Wiki
Jump to navigation Jump to search
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code>0568=2,%1d% %2d%</code><br>
+
{{OpCode
'''Description''': Sets the actor's ability to be targeted<br>
+
| games      = {{Icon|VC}} {{Icon|SA}}
'''Parameter 1''': Actor handle<br>
+
| command    = SET_CHAR_NEVER_TARGETTED
'''Parameter 2''': Flag<br>
+
| description = Sets the character to be never targetted
'''Supports''': GTA3, Vice City, San Andreas<br>
+
| syntax1    = 0568: set_actor [''char handle''] untargetable [''int'']
 +
| p1t        = [''char handle'']
 +
| p1d        = The handle of the character
 +
| p2t        = [''int'']
 +
| p2d        = 0 = can be targetted (default), {{hint|1|or any value other than 0}} = cannot be targetted
 +
| native      = [[SET_CHAR_NEVER_TARGETTED]]
 +
}}
  
The actor being able to be targeted only works in classic or joypad mode. This opcode can prevent an actor be auto-aimed.
+
This opcode sets the character to be never targetted (auto-aimed) by the player. Characters can only be auto-aimed while in classic or joypad controls, so the opcode serves no function in standard controls.
  
==Flags==
+
== Keywords ==
'''Flag 0''': Enables targetability<br>
+
set, toggle, actor, character, target, targetable, targetability
'''Flag 1''': Disables targetability
 
 
 
==Keywords==
 
set, toggle, actor, target, targetable, targetability
 
 
 
[[Category:OpCodes]]
 

Latest revision as of 23:11, 4 December 2016

Vice City San Andreas SET_CHAR_NEVER_TARGETTED


Description
Sets the character to be never targetted
Syntax
0568: set_actor [char handle] untargetable [int]
Parameter
[char handle]
The handle of the character
[int]
0 = can be targetted (default), 1 = cannot be targetted
Native analog
SET_CHAR_NEVER_TARGETTED

This opcode sets the character to be never targetted (auto-aimed) by the player. Characters can only be auto-aimed while in classic or joypad controls, so the opcode serves no function in standard controls.

Keywords

set, toggle, actor, character, target, targetable, targetability