gokuta Posted August 1, 2020 Share Posted August 1, 2020 (edited) This opcode: 0501: set_player $PLAYER_CHAR driveby_mode 0 Alright, cool. How do I check whether player is in driveby mode? Anybody knows memory address I can check? Thanks. Also NPCs are not players and (I believe) opcode 0501 (and the requested opcode) does not apply to actors other than player actor. Which is bit of a shame Edited August 1, 2020 by gokuta Link to comment Share on other sites More sharing options...
HzanRsxa2959 Posted August 5, 2020 Share Posted August 5, 2020 There are two ways that I know of. 1. Checking task status: 062E: get_actor $PLAYER_ACTOR task 0x713 status_store_to 0@ if 0@ <> 7 then // performing drive-by end 2. Checking camera ID: 0A8D: 0@ = read_memory 0xB6F1A8 size 2 virtual_protect 0 if 0@ == 55 then // performing drive-by end You may use either or both. gokuta 1 Link to comment Share on other sites More sharing options...
gokuta Posted August 7, 2020 Author Share Posted August 7, 2020 works indeed. thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now