lgpmichael Posted August 4, 2011 Share Posted August 4, 2011 Does anyone know of a way to detect that *either* the player has no weapon wielded, OR how to use OnHitWith with the players fist (without using OBSE). (Or some other clever way to know the player is hitting their target without using a weapon). Link to comment Share on other sites More sharing options...
WarRatsG Posted August 4, 2011 Share Posted August 4, 2011 I can't think of a way without OBSE. With OBSE though you can use [ Player.GetEquippedObject 16 ]. If it returns a 0 then you have nothing equipped, therefore you must be using your fists. No OBSE though.... Maybe you could use a token which sets a flag. You could punch through Dialogue perhaps. Other than that, I'm not sure. I use OBSE for a lot of things and it really does make a lot of things so much easier. Link to comment Share on other sites More sharing options...
lgpmichael Posted August 4, 2011 Author Share Posted August 4, 2011 I can't think of a way without OBSE. With OBSE though you can use [ Player.GetEquippedObject 16 ]. If it returns a 0 then you have nothing equipped, therefore you must be using your fists. No OBSE though.... Maybe you could use a token which sets a flag. You could punch through Dialogue perhaps. Other than that, I'm not sure. I use OBSE for a lot of things and it really does make a lot of things so much easier. Yeah I agree it woul dbe easier with OBSE, but Ive gone so far through this, the whole main quest, that I now really don't want to add it just for a sidequest. I'll keep on trying to work it out, but any non-obse ideas gratefully received... (* I can do it for handling all of the vanilla weapons, but it is the mod weapons that would still be a problem) Link to comment Share on other sites More sharing options...
fg109 Posted August 4, 2011 Share Posted August 4, 2011 You can try GetWeaponSkillType. Not sure how you would distinguish between whether a staff is equipped or not though... Maybe with IsWeaponOut? If you're bare-handed, it'll return 0. Unless you want to be able to tell even in non-combat situations... Link to comment Share on other sites More sharing options...
lgpmichael Posted August 4, 2011 Author Share Posted August 4, 2011 You can try GetWeaponSkillType. Not sure how you would distinguish between whether a staff is equipped or not though... Maybe with IsWeaponOut? If you're bare-handed, it'll return 0. Unless you want to be able to tell even in non-combat situations... Hah, awesome, I dont know how I missed that, as I went through the entire function list a half dozen times before I asked. That is exactly the kind of function I was looking for. I was even considering going to the effort of, onhit, work out the damage that was just caused, and see if it was more like hand to hand damage from the player, or weapon damage... Thats perfect, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts