Fallout 2 mod critter use skill SOLVED

Nirran

Vault Senior Citizen
Modder
does this function exist to script a critter to use the skill?i looked through the fo2 editor doc,cannot find one
 
For normal crettrs there is no, for party members there is a hs_useskillon + option PartyMemberSkillFix
 
ok,i wanta make dude sneak on entrance of random encounter,would that function be usable this way?

edit : i assume ur referingto this :

Code:
-------------------------------------------

HOOK_USESKILL (hs_useskill.int)

Runs when using any skill on any object.

This is fired before the default handlers are called, which you can override. In this case you should write your own skill use handler entirely, or otherwise nothing will happen (this includes fade in/fade out, time lapsing and messages - all of this can be scripted; to get vanilla text messages - use message_str_game() along with sprintf()).
Suggested use - override first aid/doctor skills to buff/nerf them, override steal skill to disallow observing NPCs inventories in some cases.
Doesn't seem to run when lock picking.

Critter arg1 - The user critter
Obj     arg2 - The target object
int     arg3 - skill being used
int     arg4 - skill bonus from items such as first aid kits

int     ret1 - overrides hard-coded handler (-1 - use engine handler, any other value - override)

-------------------------------------------

doesnt seem to be what im after
 
Last edited:
Back
Top