武器

Game_Player_Weapon_GetWeaponId()

获取玩家武器ID

local WeaponID = Game_Player_Weapon_GetWeaponId()

Game_Player_Weapon_GetWeaponType()

获取玩家武器类型

local Type = Game_Player_Weapon_GetWeaponType()

Game_Player_Weapon_ChangeWeapons(type,id)

更换玩家的武器

参数

说明

类型

type

武器类型

int

id

武器ID

int

Game_Player_Weapon_ChangeWeapons(3,101)

更换玩家武器时只会对部分内存数据进行更新,此时获取玩家武器ID仍然是原始ID

Game_Player_Weapon_CompleteChangeWeapons(type,id)

完全更换玩家的武器

参数

说明

类型

type

武器类型

int

id

武器ID

int

Game_Player_Weapon_ChangeWeapons(3,101)

完全更换玩家武器会刷新内存数据,相对于普通更换的更彻底,但用时较长,做延迟触发处理时建议增加延迟值。

Game_Player_Weapon_GetOrnamentsCoordinate()

获取玩家武器装饰物坐标

local x,y,z = Game_Player_Weapon_GetOrnamentsCoordinate()

Game_Player_Weapon_GetOrnamentsSize()

获取玩家武器装饰物模型大小

local x,y,z = Game_Player_Weapon_GetOrnamentsSize()

Game_Player_Weapon_SetOrnamentsCoordinate(x,y,z)

设置玩家武器装饰物坐标

参数

说明

类型

x

设置的坐标X值

float

y

设置的坐标Y值

float

z

设置的坐标Z值

float

Game_Player_Weapon_SetOrnamentsCoordinate(100,100,100)

Game_Player_Weapon_SetOrnamentsSize(x,y,z)

设置玩家武器装饰物模型大小

参数

说明

类型

x

设置的模型大小X值

float

y

设置的模型大小Y值

float

z

设置的模型大小Z值

float

Game_Player_Weapon_SetOrnamentsSize(100,100,100)

Game_Player_Weapon_DecontrolOrnamentsCoordinate()

解除玩家武器装饰物坐标设置

Game_Player_Weapon_DecontrolOrnamentsCoordinate()

Game_Player_Weapon_DecontrolOrnamentsSize()

解除玩家武器装饰物模型大小设置

Game_Player_Weapon_DecontrolOrnamentsSize()

Game_Player_Weapon_GetMainWeaponCoordinate()

获取玩家主武器坐标

local x,y,z = Game_Player_Weapon_GetMainWeaponCoordinate()

Game_Player_Weapon_GetMainWeaponSize()

获取玩家主武器模型大小

local x,y,z = Game_Player_Weapon_GetMainWeaponSize()

Game_Player_Weapon_SetMainWeaponCoordinate(x,y,z)

设置玩家主武器坐标

Game_Player_Weapon_SetMainWeaponSize(x,y,z)

设置玩家主武器模型大小

Game_Player_Weapon_DecontrolMainWeaponCoordinate()

解除玩家主武器坐标设置

Game_Player_Weapon_DecontrolMainWeaponSize()

解除玩家主武器模型大小设置

Game_Player_Weapon_GetSecondaryWeaponCoordinate()

获取玩家副武器坐标

Game_Player_Weapon_GetSecondaryWeaponSize()

获取玩家副武器模型大小

Game_Player_Weapon_SetSecondaryWeaponCoordinate(x,y,z)

设置玩家副武器坐标

Game_Player_Weapon_SetSecondaryWeaponSize(x,y,z)

设置玩家副武器模型大小

Game_Player_Weapon_DecontrolSecondaryWeaponCoordinate()

解除玩家副武器坐标设置

Game_Player_Weapon_DecontrolSecondaryWeaponSize()

解除玩家副武器模型大小设置

Game_Player_Weapon_CharacteristicIntValue(value)

警告:该函数会对内存指针进行直接读取,如果不知道如何使用或不知道正确的指针偏移,请千万不要使用该函数

获取武器整数型特殊数值

local value = Game_Player_Weapon_CharacteristicIntValue('2D24')

返回参数

说明

value

获取到的武器特殊数值

Game_Player_Weapon_CharacteristicFloatValue(value)

警告:该函数会对内存指针进行直接读取,如果不知道如何使用或不知道正确的指针偏移,请千万不要使用该函数

获取武器浮点型特殊数值

local value = Game_Player_Weapon_CharacteristicFloatValue('2D24')

返回参数

说明

value

获取到的武器特殊数值

Game_Player_Weapon_CharacteristicByteValue(value)

警告:该函数会对内存指针进行直接读取,如果不知道如何使用或不知道正确的指针偏移,请千万不要使用该函数

获取武器字节型特殊数值

local value = Game_Player_Weapon_CharacteristicByteValue('2D24')

返回参数

说明

value

获取到的武器特殊数值

Game_Player_Weapon_SetCharacteristicValue(Address,Type,Value)

警告:该函数会对内存指针进行直接读取,如果不知道如何使用或不知道正确的指针偏移,请千万不要使用该函数

设置武器型特殊数值

参数

说明

类型

Address

偏移地址

string

Type

数据类型

string

Value

数值

int/float/string

Game_Player_Weapon_SetCharacteristicValue('2D24','int',100)

此处数据类型包括int、float、bool、byte,需要使用小写字母写入

Game_Player_Weapon_GetHitCoordinate()

获取武器命中坐标

local Hitx,Hity,Hitz = Game_Player_Weapon_GetHitCoordinate()

Game_Player_Weapon_GetAttackMonster()

获取武器命中怪物地址

local AttackMonster = Game_Player_Weapon_GetAttackMonster()

最后更新于