Page 2 of 2

Re: Scripting command questions

Posted: 28 Jun 2017, 10:59
by elypter
you have to wrap the whole statement in another pair of brackets

Re: Scripting command questions

Posted: 28 Jun 2017, 16:20
by Devastator
Finally, it works! Thank you!

What is the maximum amount of lines code one can have in a script again?

It seems like the standard code for no reload times doesn't work on vehicle weapons.

EDIT: Found it, you have to use the "IS_CHAR_IN_MODEL" command for it to work.

Re: Scripting command questions

Posted: 29 Jun 2017, 00:58
by elypter
(LIMITATION) Maximum of code lines in a script is 3014

Re: Scripting command questions

Posted: 03 Jul 2017, 18:06
by T.M.
elypter wrote:(LIMITATION) Maximum of code lines in a script is 3014
But that was only the official compiler limitation? IIRC there is another limitation about script commands which is higher than the lines limitation.

Re: Scripting command questions

Posted: 19 Jun 2025, 17:14
by valps
Devastator wrote: 01 Jun 2017, 15:39 ...but is there anyway to turn off player display names?
I've found the address 0x5EAD76 in 9.6f or 11.44 which stores the boolean value (1 byte) for displaying names. Here is an example of toggling on/off displaying player names dynamically:

Code: Select all


COUNTER show_player_name_add = 6204790
COUNTER player_name_toggle = 0

// some coding stuff...

toggle_name_display:

   IF (player_name_toggle = 0)
       SET in = 1
       SET player_name_toggle = 1
       CHANGE_GANG_CHAR_RESPECT (show_player_name_add, in ,111)
       RETURN
    ENDIF
    
    IF (player_name_toggle = 1)
       SET in = 0
       SET player_name_toggle = 0
       CHANGE_GANG_CHAR_RESPECT (show_player_name_add, in ,111)
       RETURN
    ENDIF
    
RETURN