Jump to content

DarkLink

Members
  • Posts

    610
  • Joined

  • Last visited

Everything posted by DarkLink

  1. Thanks bro, I dont know yet, things are working now for 1.0.5. But there will be some additions that I can only do on 1.1 Thanks.
  2. We dont know how much "soon" is that
  3. I have many pieces of wood mate, and I dont know where to use that, its only to use when they are near the woods right?
  4. Okay bro I will wait a bit for 1.1, thanks mate By the way if anyone read this topic and knows if there is a good way of doing this without 1.1, just tell me Thanks alot guys . cya
  5. Thanks for your reply mate. It says on wiki that getElementHealth is only for peds, players and vehicles Are you sure with works for objects ? Oo
  6. Okay guys thanks for your help, this is a bit harder than I though. I need some help, I have many ways of doing this, I wanna know which one is the best one, the one that uses less memory of computer. Okay I need an event like "onClientRender" always calling a function to see if the pieces of wood are in destroyed state right? To do this I use isElementOnScreen, and when is on destroyed state it returns false, right? but needs to be on screen.. What I must do is only getting the pieces of wood that are on the screen and then check if they are destroyed. But how can I do this? With processLineOfSight? but it says there this: So it will make huge lag if I am calling this all the time with my event "onClientRender". So any suggestions guys? Thanks alot. EDIT: HEY GUYS! I have one idea, but dont know if its possible to do! Is it possible to make an camera above all the pieces of wood, and then use something like : But instead of using the screen of the local player, use the camera above the pieces of wood? Possible?? Thanks alot mates!
  7. Good job Jacob! I notice on features "edit resource files", really? it opens the script files and you can rewrite them on the game? Amazing bro! Dont stop the good work
  8. Hi there guys, we all know that there are dynamic objects on GTA, with destroyed state and non destroyed state right? Like wooden pieces from farms..glass.. and much more. I am trying to recreate these objects after they get destroyed, you see? and so I look on wiki and found this: On the last line it says that I can use "isElementOnScreen to detect, destroy, and recreate these objects". But how do I recreate these objects with this function? I dont get it.. Maybe I can only detect if the object is in destroyed state right? and then I get the position and rotation of that object and create him again, using createObject? Or its possible to just turn from destroyed state to normal state? Thanks alot guys, I think this will easy for you Thanks in advance!
  9. Okay guys so I updated my resources using the link which NikDelgad gave me, and I guess the problem persists. I tryed what u say SDK, I change the position, saved, and then reloaded the map.. and the flower get new position, according to where I put it. so its fine. But when I place the element and I try to change is position I just change the red selection cuboid, not the visual representation of the element, do you see? Look this image as example, I tryed to move the flowers to the left and this is what happens: Flower representation keeps on the same spot, but the selecion cuboid changed position. So anyone know how to help me? Thanks alot in advance!!!
  10. How do I update my editor by the way? Thanks.
  11. Thanks for your reply Yes it appears now the flowers as custom element, but there is somekind of bug with the position. I place the element (flowers) then I change the position on map editor with arrows, you know ? and the selection cuboid change position but flowers keep on same position, do you know why ? Thanks in advance. EDIT: tryed this but still not working :
  12. Hm okay thanks, does anyone knows how to ? Wojak may know, he knows alot about edf
  13. Hm I guess I understand Tryed a few examples and its okay. Thanks castillo. By the way do you know how to make a custom element for pickup model? I tryed this: on my EDF files, but creates a health pickup instead of flowers that is 325 model I tryed to look on editor_main resources something about pickups but they dont use it on edf file, there must be another script I cant found it.. to learn from it. So do you know how to make a custom element for a pickup model ? Thanks in advance.
  14. Okay I got it, thanks castillo! By the way can you tell me what is the difference between this events: onPickupHit onPickupUse I cant understand Thanks!
  15. By the way if I make a weapon pickup it gives the weapon to the player when I hit the pickup? or need an extra function? I would like to put some flowers (weapon) its almost the same as the drug_green, it makes the job for my gamemode. But I dont want to give those flowers as weapons but make a custom function I want, possible? Thanks.
  16. Hmm I see, thanks alot castillo
  17. Okay so I went to createPickup page on wiki, and notice this: model: If the pickup is a custom model, this is the model id to use. Many non-pickup models can be used, though some may cause crashes. The following is a list of models designed to be used as pickups. 370: Jetpack 1212: Money (Wad of Cash) 1240: Health (heart) 1242: Armour 1272: House (blue) 1273: House (green) 1274: Money (dollar symbol) 1277: Save (floppy disk) So is this the only objects models available for pickups? I really want to use model : 1578 (drug_green) for my gamemode. Is there a way to make it working? Thanks in advance guys!
  18. The gamemode is going good, alot of new things done last days It was a good day , like ice would say ;D Cya mates, almost on finish line^^ By the way I will need an intensive test later with many players if someone have good server to host was nice, thanks.
  19. Ye thanks alot bro, I forgot about those pages on google ! I will read it after when I have some time, thanks! And yes Jacob teach me how to do it I can prevent map cheating ^^ And I will make those verifications on edf file, I need onMapOpen, onNewMap and .. what is the one for load edf? onLoadEdf ? Thanks alot mate!
  20. Yes its working now! Thanks alot bro! By the way, I understand now what you were talking about the events of which resource, that I can use on other resources ! Thats amazing! And so I did u know about those "onNewMap" and "onMapOpen" ? Is there any documentation about editor_main resource? I can't find it on mta wiki bro. And one more question its not possible to put more than 4 passages right? But a mapper can cheat and go right on .map file, and add one more right? this scripts doesnt prevent from that "cheating", right? What I must do is when I am getting those elements I only get 4 of them not more, right? its the solution? Thanks alot in advance, you helped me alot!
  21. Thanks for your feedback Yes actually you already give me your time to explain me somethings here on the forum, many topics on scripting bro I never forget those guys .
  22. Thanks for your reply, but I still cant understand where that source cames from? I mean there that is a custom event right? its not on the wiki. and you are not triggering it, so what will be the source? Thanks. Maybe I am doing things wrong? I open map editor at mtasa, then add definitions for the borderpatrol.edf which have this line on the edf file: So its everything okay? should it give me messages on the chatbox when I try to make more than 4 passages? Thanks.
  23. Thanks for your reply jay, but I didnt understand much. for setCameraMatrix with right click, I need to be constant refreshing the position of the mouse on the screen? and about this So the cross hair change position when player fire? I dont get it and setObjectStatic, when they get destroyed (use isObjectStatic, if is false then its destroyed, right?) I made them again? Thanks for your help bro.
  24. Okay guys, first I wanna know if this is possible to do? If you dont know what I am talking about, remember the Zero Mission in single player, you was CJ on a turret (mini-gun) destroying all the airplanes coming from barkley? do you remember? My question is: is it possible to attach a player to a minigun, change the camera do the minigun, make a cross for aiming and then left mouse to shoot the minigun. This is very important to me I dont have any clue how to do it.. I know I can make the object (turret), a bind key to enter, than a condition if player is near the turret than he gets attached. But I dont have any idea how to change camera to sync with turret movement, and make the crosshair.. So can you guys give me some help? I dont want the code, just some ideas how to do it, with turret movement.. the crosshair and the shooting. Thanks alot in advance!! EDIT: Just one more question, how can I set destroyable objects not to be destroyable? is it possible? I talk about wood objects that players can destroy.. I dont want players to destroy it, is it possible by scripting? thanks.
  25. Hmm I see so break is used to leave the for that is inside, right? Thanks.
×
×
  • Create New...