Jump to content

Greenie0101

Members
  • Posts

    126
  • Joined

  • Last visited

Everything posted by Greenie0101

  1. Fair point. Anyone who wants to vote for the realistic type just comment it. If you like the unrealistic one then vote for Role Play.
  2. Well RPG stands for Role Playing Game doesn't it? Whats the difference?
  3. Lets get lots of votes in I'd like to see some results. Comment to keep this topic high up!
  4. So not all these are actual game modes. Just ideas to see what people want to play.
  5. Yea im basically out of MTA sorry guys. Been scripting for a year and i need to focus on school more
  6. Haha ok well ive got a big assignment due friday and so ill make it friday night i guess
  7. Well i dont really need them anymore. But learning without them was a bitch haha so thats why im making some now that i can script. Make some for the new scripters though!
  8. Ive come a long way since i posted this haha 2 gamemodes later and ive started my own series! Check out the link in my signature!
  9. New tutorial! In this one I explain how to use event handlers to trigger functions.
  10. Hey MTA community. After 2 gamemodes i thought i'd give sctipting tutorials a go. Im still not amazing but i think i can help you guys. Here is my scripting tutorial series! I hope it helps you! Ill have more videos soon and ill post them here CMG Scripting Tutorial 1 - First Resource CMG Scripting Tutorial 2 - Event Handler
  11. "Welcome to the Aviators Gamemode!\n\nThe main focus of this gamemode is to fly around, join airlines hang about,buy houses, meet your friends buy cars and show off your flying skills! If you've loved flying in single player this is the gamemode for you!\n\nHere are the levels\nA student pilot is 0 points : These can fly everything except the Andromada, AT-400, military planes and military helicopters (hydra/hunter)/n /n A Private pilot is 150 points : These can fly everything except the Andromada and AT-400, and military planes and helicopters (hydra/hunter) and flying with the shamal will be x1.5 the amount of money a student pilot earns A Commercial /n /n pilot is 250 points These can fly everything /n except the military planes and helicopters (hydra/hunter) Army pilots is 500 points : These can fly everything /n In an airline, all airplanes of the airline can be used not matter what \"level\" you are you did some of them (Welcome to the Aviators Gamemode!\n\nThe main focus of....) as a \n and others (These can fly everything /n In an airline, all airplanes of the...) as a /n make all the /n into \n
  12. the bullets in that mod cmg uses i think are dx lines. i dont think bullets can be seen flying through the air
  13. dont worry ill find a way around it. thanks for trying to help though
  14. ok im being misunderstood. I have a script which makes a ped (not the player) and an object and attaches them. i dont need to be told how to do all that. i have the ped and object created, attached and falling, thats not what i needed help to do. now i need to use setTimer so i get the velocity of the ped as it falls every 100ms. when i do this in a different function, all i get is 0,0,0 on my outputChatBox. but i cant find a way of doing it in the same function. im bad at explaining so sorry if this make no sence
  15. what ive done is made 2 objects, one is a ped the other is an object. i have attached them so that as the ped falls with graity the object falls too. then i want to get the velocity of the ped every 100ms. i know how to do all this and it should be easy. however even when the ped is clearly falling very fast, with the object attached, im getting 0,0,0 as my velocity
  16. still getting 0 for everything even when the object i falling quite fast
  17. this was just an example, ive got a script which uses an event making the player the source its server sided oh and this script is using getElementVelocity and not getElementPosition and all im getting is 0 as my return what if i went setTimer(outputChatBox,100,0,getElementVelocity(object),source) is there a way to make that output the velocity in all 3 of its returns?
  18. something that ive always wondered and im sure is posible and very easy but i cant work out, is how to define values in a timer for example i can do this x,y,z = getElementPosition(source) but i cant do this setTimer(x,y,z = getElementPosition,100,0) how can i do something like this so i can use x,y,z later?
  19. i know, i just wanted to know how to find what rotation i need it to be set as so that the ped is facing the player
  20. never saw that function, thanks alot
  21. can a function be added which sets the peds or players rotation so its facing either a x,y,z position or a specified element. I'm sure this can be done manually through some calculation but im no good at maths. for example could it be setPedFacing(ped,element) or setPedFacing(ped,x,y,z) e.g. 1 setPedFacing(ped,player) --Will change the peds rotation so it faces the player e.g. 2 setPedFacing(ped,0,0,0) --Will change the peds rotation so it faces the position 0,0,0 this would help me a lot if it was added in a future update
  22. Ok thanks alot, its midnight but ill test it in the morning. You've been a great help Edit: i used this and it seems to work fine (just used output chatbox to test the detection function wallrun() local x1, y1, z = getElementPosition(localPlayer) local r = math.rad(getPedRotation(localPlayer)) local x2, y2 = x1+math.sin(-r)*2, y1+math.cos(-r)*2 if isLineOfSightClear(x1,y1,z,x2,y2,z) then outputChatBox("clear") else outputChatBox("not clear") end end setTimer(wallrun,1000,0) I had to make it -r as just using r made it only work when facing at some angles. thanks for you're help
  23. Haha sin and cos.... Now i wish id payed attention in maths class How do i use triganomerty in this?
  24. awesome so if i used float, float, float getWorldFromScreenPosition ( float x, float y, float depth ) and set the x and y to center screen and the depth to 10 it would get the point in the world 10 units away which if i was facing a wall would be on the other side? then i could use processLineOfSight to check if there was a wall there? or is there a better way?
×
×
  • Create New...