iDash Posted January 31, 2015 Share Posted January 31, 2015 Hello, I have noticed since the beginning of San Andreas that if gang members are doing drive-by, they always open the windows to shoot out. Sorry if this has been already asked, I searched on google but it only gave me results of windows OS so... Is there a possibility to make a CLEO or ISO out of that? So that we could control opening and closing them? I've searched in Sanny Builder but haven't found an opcode for it - sure, I'm not clever enough. It's gotta be there somewhere, since R* scripted it, right? I'm just interested... It always bothers me, when I steal a car, get 3 dudes in, they do drive-by on ballas and then all windows are open except mine. It just doesn't look right. Greets. Sorry for my english, I'm german. Link to comment https://gtaforums.com/topic/764844-san-andreas-car-windows-control/ Share on other sites More sharing options...
BMWSauberF1.08 Posted January 31, 2015 Share Posted January 31, 2015 Windows are attached to the doors,so there's no way to control them(i think),when gang members do drive-bys,i think that the game deletes the window material Link to comment https://gtaforums.com/topic/764844-san-andreas-car-windows-control/#findComment-1066904465 Share on other sites More sharing options...
Silent Posted January 31, 2015 Share Posted January 31, 2015 True, they can only be hidden/unhidden. No animations. Link to comment https://gtaforums.com/topic/764844-san-andreas-car-windows-control/#findComment-1066905339 Share on other sites More sharing options...
iDash Posted February 1, 2015 Author Share Posted February 1, 2015 Thanks for the reply! That's what I mean. If they can be hidden/unhidden there has to be a function to call, right? And if there's such a function, it can be done with CLEO/ASI... Right? I mean, it isn't a big deal and all but still... Link to comment https://gtaforums.com/topic/764844-san-andreas-car-windows-control/#findComment-1066905695 Share on other sites More sharing options...
Silent Posted February 1, 2015 Share Posted February 1, 2015 Yeah, there are EXE functions controlling this. Easily callable from CLEO. You could try using those SCM funcs. The window IDs are 8, 9, 10, 11, although I don't remember which is whick. You'd have to experiment a bit. Untested. :SET_WINDOW_OPEN_FLAG0A97: 0@ = car 0@ struct0AA6: call_method 0x6D3080 struct 0@ num_params 1 pop 0 1@0AB2: ret 0:CLEAR_WINDOW_OPEN_FLAG0A97: 0@ = car 0@ struct0AA6: call_method 0x6D30B0 struct 0@ num_params 1 pop 0 1@0AB2: ret 0You use them like 03C0: 10@ = actor $PLAYER_ACTOR car0AB1: call_scm_func @SET_WINDOW_OPEN_FLAG 2 10@ 8 Link to comment https://gtaforums.com/topic/764844-san-andreas-car-windows-control/#findComment-1066907324 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