 |
 |
 |
|
 |
 |
 |
|
 |
 |
Geting npc visual and forcing npc into animation. |
|
« Previous 10 events | 1 2 | All Messages |
|
|
22:53:28 23 August 2013 |
|
Reisen
(Novice) On forum: 02/09/2012
 Message edited by: Reisen 08/24/2013 16:05:45
Messages: 26
|
Ok, I spend close to 10 hours since yesterday trying to make it work but I cant.
Edit: I finally made it work (at least part that suppose to detect, who, shot whom and with what weapon.
This is what I have now, I think (hope) it will work fine.
if bone_index == 2 or bone_index == 3 or bone_index == 7 or bone_index == 20 or bone_index == 21 or bone_index == 33 or bone_index == 34 or (bone_index >= 11 and bone_index <=14) then
say1 = "1 - weapon"
local npc_id = obj
local IA = who:active_item()
local IAS = IA:section()
local group_1 = {wpn_fort = true, wpn_pm = true, wpn_beretta = true, wpn_colt1911 = true}
if npc_id ~= nil then
local who = my_script.who_hit_npc_last(npc_id)
end
if IAS ~= nil and group_1[IAS] then
say1 = IAS
end
news_manager.send_tip(db.actor, say1, nil, nil, 2000)
end
@Smoq2 so now I am waiting for "packet_utils21.script" modified for CS you promised to reupload. |
|
« Previous 10 events | 1 2 | All Messages |
|
|
|
» » |
|
All short dates are in Month-Day-Year format. |
 |
|
 |
|
|
|
 |
 |
 |