superninja Posted June 4, 2007 Share Posted June 4, 2007 Ok i need to make 'gate that have brain' and will move when the player approach it. We have: 029B: $gate = init_object -33 (ELECTRICGATE) at -1321.252 -110.39 10.230177: set_object $gate z_angle_to 90.0 and i have when player approach (How the script look likes??) 029B: $gate = init_object -33 (ELECTRICGATE) at -1321.252 -104.39 10.230177: set_object $gate z_angle_to 90.0 i saw this code in marina_carpark_garage mod for vice city.But i there are two gates and this makes the code very hard to understand.I also saw the thing 034E: unknown_move_object $gate to bla bla bla unknown_angle 0.1 0.327 0.0 0 Please if you have time explain to me(do not say that guy knows how ask him in pm or you can use bla bla because i don't know the thread function i only know that we use jf if the thing is false) Link to comment https://gtaforums.com/topic/280611-the-gate-or-how-to-move-it-when/ Share on other sites More sharing options...
ceedj Posted June 4, 2007 Share Posted June 4, 2007 Have a look at the VC mission "Cabmageddon" (part of the Kaufman Cabs strand), which uses the "smart" gate. You'll be looking for an opcode that checks where the player is in relation to the gate. Link to comment https://gtaforums.com/topic/280611-the-gate-or-how-to-move-it-when/#findComment-4277148 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