lee3310 Posted November 14, 2022 Share Posted November 14, 2022 I can't find any information about how "SetPlayerTeammate()" does to disable the targeting system and how to prevent it. Link to comment Share on other sites More sharing options...
hereami Posted November 14, 2022 Share Posted November 14, 2022 Just in case, if about Companion, there's VATSRestrictedTargetKeyword sitting in the alias. Now that you ask, not sure then what is pure effect of SetTeammate alone and why kw is needed. For my custom followers i've incorporated this alias keyword too, and probably did it for a reason, though don't remember now. Link to comment Share on other sites More sharing options...
lee3310 Posted November 15, 2022 Author Share Posted November 15, 2022 (edited) Just in case, if about Companion, there's VATSRestrictedTargetKeyword sitting in the alias. Now that you ask, not sure then what is pure effect of SetTeammate alone and why kw is needed. For my custom followers i've incorporated this alias keyword too, and probably did it for a reason, though don't remember now.Pacified enemies are also flagged as teammates and "VATSRestrictedTargetKeyword" does not prevent you from targeting the NPC in VATS, you just can't shoot it (you get an "invalid target" notification). Edited November 15, 2022 by lee3310 Link to comment Share on other sites More sharing options...
Blinxys Posted November 15, 2022 Share Posted November 15, 2022 Be nice to get VATs nailed down better, sometimes it works perfectly, more often it zeros in on a harmless rad rabbit 100 meters off...instead of the Feral Ghoul that is <1meter away, and about to pounce on my neck. :pinch:seldom want to target companions/followers (but that does happen). :blush: Really should prioritize targets with a smidgen of intelligence. :dry:I have it set to freeze-time so I can sort through the carp while in big skirmishes. @hereiam have seen SetPlayerTeammate comes into play for things like forcing a clingy follower to unfollow/go home. Reference:Force Dismiss Follower:~ click on NPCsetconsolescopequest followersemptyrefalias companionsetplayerteammate 0removefromfaction ID though the exact function is undefined to me- it seems to be a pretty essential element of the stack there.(To the point that removefromfaction ID is seldom required to give 'em the heave ho). Link to comment Share on other sites More sharing options...
lee3310 Posted November 15, 2022 Author Share Posted November 15, 2022 Be nice to get VATs nailed down better, sometimes it works perfectly, more often it zeros in on a harmless rad rabbit 100 meters off...instead of the Feral Ghoul that is <1meter away, and about to pounce on my neck. :pinch:seldom want to target companions/followers (but that does happen). :blush: Really should prioritize targets with a smidgen of intelligence. :dry:I have it set to freeze-time so I can sort through the carp while in big skirmishes. @hereiam have seen SetPlayerTeammate comes into play for things like forcing a clingy follower to unfollow/go home. Reference:Force Dismiss Follower:~ click on NPCsetconsolescopequest followersemptyrefalias companionsetplayerteammate 0removefromfaction ID though the exact function is undefined to me- it seems to be a pretty essential element of the stack there.(To the point that removefromfaction ID is seldom required to give 'em the heave ho). I mostly use VATS to check companions health when they are not protected/essential.And i also thought that flagging an NPC as teammate will add it to the follower quest refcoll but it's not the case and i still don't know what variable is setplayerteammmate changes to block VATS.i just need a hint, for exemple the script or perk that handles VATS if there is any. Link to comment Share on other sites More sharing options...
LarannKiar Posted November 16, 2022 Share Posted November 16, 2022 (edited) As far as I remember, SetPlayerTeammate(True) disables the player's ability to target them in VATS, no matter what. It seems to be a hardcoded behavior as it can't be turned off (maybe with different SetPlayerTeammate parameters? E.g., abCanDoFavor=False). I think the VATS block also applies to NPCs that are not even "followers" (so Game.GetPlayerFollowers().Find(TheNPC) < 0). Edited November 16, 2022 by LarannKiar Link to comment Share on other sites More sharing options...
lee3310 Posted November 17, 2022 Author Share Posted November 17, 2022 As far as I remember, SetPlayerTeammate(True) disables the player's ability to target them in VATS, no matter what. It seems to be a hardcoded behavior as it can't be turned off (maybe with different SetPlayerTeammate parameters? E.g., abCanDoFavor=False). I think the VATS block also applies to NPCs that are not even "followers" (so Game.GetPlayerFollowers().Find(TheNPC) < 0).Exactly, any NPC set as player teammate is automatically disabled in VATS and i was hoping that i can find a workaround, but if it's hardcoded like you say, there isn't much to do about it, except an F4SE plugin maybe ?. I wish i can get my hand on a tutorial on how to do that ( i have some leftover C/C++ knowledge) Link to comment Share on other sites More sharing options...
Recommended Posts