OY338 Posted April 28, 2021 Posted April 28, 2021 Приветствую. Возможно ли в событии "onClientPedDamage" сделать проверку по какому именно боту нанесен урон?
Scripting Moderators Sarrum Posted April 28, 2021 Scripting Moderators Posted April 28, 2021 . Для помощи по скриптам есть подфорум 'Скриптинг', перенёс тему туда. Просьба использовать именно его. В данном событии source это пед, который получил урон. 2 варианта: 1) local ped = createPed ( ... ) addEventHandler ( "onClientPedDamage", root, function ( ) if ( source == ped ) then -- source - пед end end ) 2) local ped = createPed ( ... ) addEventHandler ( "onClientPedDamage", ped, function ( ) -- source - пед end )
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now