跳转至

brain


register_object_script_brain

void native.brain.register_object_script_brain(string script_name, int model_hash, int p2, float activation_range, int p4, int p5)

Registers a script for any object with a specific model hash.

_start_preloaded_script_brain

int native.brain._start_preloaded_script_brain(int entity, string script_name, int script_stack_size, bool p3)

Returns threadId

_start_script_brain

int native.brain._start_script_brain(int entity, string script_name, int p2, ptr int p3, int p4, bool p5)

Returns threadId

_remove_script_brain_entity

void native.brain._remove_script_brain_entity(int entity)


_get_script_brain_entity

int native.brain._get_script_brain_entity()


_0xa6ac35db4a7957a8

void native.brain._0xa6ac35db4a7957a8(int flag)

Common flags: 250, 99999
_SET_SCRIPT_BRAIN*

_0x4aa5ea1edfb25786

void native.brain._0x4aa5ea1edfb25786(int flag)

Called with flag 0 before 0xA6AC35DB4A7957A8 in net_entity_brain
_SET_SCRIPT_BRAIN*

enable_script_brain_set

void native.brain.enable_script_brain_set(int brain_set)


disable_script_brain_set

void native.brain.disable_script_brain_set(int brain_set)


reactivate_all_object_brains_that_are_waiting_till_out_of_range

void native.brain.reactivate_all_object_brains_that_are_waiting_till_out_of_range()

Called before starting a new thread_monitor script thread in startup_mp/startup_tlg
Alternative name _REGISTER_SCRIPT_BRAIN

Old name: _PREPARE_SCRIPT_BRAIN

reactivate_named_object_brains_waiting_till_out_of_range

void native.brain.reactivate_named_object_brains_waiting_till_out_of_range(string script_name)