Abesh Posted August 22, 2009 Share Posted August 22, 2009 So I want to try to get a script to activate when you pickpocket someone that simultaneously grabs them as a reference. Pretty much, I want to make a mod that lets you shove people if you sneak up behind them, like with Brahmin. Any ideas? Link to comment Share on other sites More sharing options...
gsmanners Posted August 23, 2009 Share Posted August 23, 2009 I think Brahmin work the way they do because they have a special OnActivate block. With NPCs, you sometimes already have special OnActivate blocks already. Ideally, you would somehow daisy-chain your own OnActivate along with a menu that lets you choose between pickpocket or shove. Considering how much you're undermining the user interface with the above scenario, I think it would be better to make a FOSE mod that uses a custom keyboard command and GetCrosshairRef. Link to comment Share on other sites More sharing options...
Abesh Posted August 23, 2009 Author Share Posted August 23, 2009 I think Brahmin work the way they do because they have a special OnActivate block. With NPCs, you sometimes already have special OnActivate blocks already. Ideally, you would somehow daisy-chain your own OnActivate along with a menu that lets you choose between pickpocket or shove. Considering how much you're undermining the user interface with the above scenario, I think it would be better to make a FOSE mod that uses a custom keyboard command and GetCrosshairRef. Ha, I had no idea that the function GetCrosshairRef existed, which makes this entire thing trivially easy, lol. I'll just set it to check IsActor and Player.IsSneaking. Sweet. Link to comment Share on other sites More sharing options...
TheChan Posted August 23, 2009 Share Posted August 23, 2009 Basically you want an OnActivate command, a Player.IsSneaking if statement, and an else Activate function. Link to comment Share on other sites More sharing options...
Abesh Posted August 24, 2009 Author Share Posted August 24, 2009 Basically you want an OnActivate command, a Player.IsSneaking if statement, and an else Activate function. Problem with this rather than what has already been suggested is that I wouldn't have an on-the-fly reference for an OnActivate statement. Link to comment Share on other sites More sharing options...
Recommended Posts