Jump to content

San Andreas car windows control?


Recommended Posts

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

True, they can only be hidden/unhidden. No animations.

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...

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 0
You use them like

 

03C0: 10@ = actor $PLAYER_ACTOR car0AB1: call_scm_func @SET_WINDOW_OPEN_FLAG 2 10@ 8

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.