davidgpilot Posted May 18, 2013 Share Posted May 18, 2013 hey guys, I recently built a fire station with 3 bays... I wanted to have a door in each one of them that when I get close to it, it will open like the garage doors in dohetry... I want it also to open only for memebers of the fire station like "firefighter". please help... I tried everything http://img267.imageshack.us/img267/2153/firestat.jpg Link to comment
Moderators IIYAMA Posted May 18, 2013 Moderators Share Posted May 18, 2013 (edited) (col problems from the screenshot) attach 2 other objects on it and make them invisible.(per door) and remove the collision of the scaled doors. Edited May 18, 2013 by Guest Link to comment
davidgpilot Posted May 18, 2013 Author Share Posted May 18, 2013 ok, but how to make the gate function in the way I mentioned? I need a ready script so I will put in it the X, Y, Z of the gate... Link to comment
Moderators IIYAMA Posted May 18, 2013 Moderators Share Posted May 18, 2013 Use these: addCommandHandler moveObject createObject People won't script for free. We are here to help, but not to make it for you. Link to comment
Castillo Posted May 18, 2013 Share Posted May 18, 2013 He said that he wants it to open when you get near it, so he has to use colshapes: https://wiki.multitheftauto.com/wiki/Se ... _functions onColShapeHit onColShapeLeave Link to comment
davidgpilot Posted May 18, 2013 Author Share Posted May 18, 2013 thanks dude , but after I done with scripting, where do I put it in the map file? Link to comment
Castillo Posted May 18, 2013 Share Posted May 18, 2013 Scripts don't go on map files, you must create a .lua file and add it there. Link to comment
davidgpilot Posted May 18, 2013 Author Share Posted May 18, 2013 Im not a good scripter... Idk how to make the script... I want 3 doors that will function the same but independently... I want each one of them to act like the garage doors of dohetry... and I want them to get open only for fire fighter members... how to do it? Link to comment
Castillo Posted May 18, 2013 Share Posted May 18, 2013 https://wiki.multitheftauto.com/wiki/Sc ... troduction https://wiki.multitheftauto.com/wiki/Resources And by "open only to fire figher members" you mean players in a team? Link to comment
davidgpilot Posted May 18, 2013 Author Share Posted May 18, 2013 yes, its a group of members that I want the gates to open only to them scripting seems to be a bit complicated... its more hard to learn then 3D modelling that Im worknig on Link to comment
iPrestege Posted May 18, 2013 Share Posted May 18, 2013 You can pay a scripter ,If you don't want to learn scripting . Link to comment
davidgpilot Posted May 18, 2013 Author Share Posted May 18, 2013 where can I find one? I prefer learning it myself... since im a curios person and I like learning programing and modeling Link to comment
Castillo Posted May 18, 2013 Share Posted May 18, 2013 You can try this resource: https://community.multitheftauto.com/in ... ils&id=614 It's used to create gates and they can be restricted to teams. Keep in mind that is an old resource, I'm not sure if it still works. Link to comment
iPrestege Posted May 18, 2013 Share Posted May 18, 2013 Lua tutorials, manuals Scripting Introduction Meta.XML Go ahead ! Link to comment
davidgpilot Posted May 18, 2013 Author Share Posted May 18, 2013 ok , but Im not sure its the type of function Im looking for thanks, I will take my time to learn Link to comment
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