Jump to content

MTA SnakeGame Help


Recommended Posts

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

No problem. :)

you should use table.insert to add the peds to a table

And set a timer that will set the peds rotation to the player rotation shouldnt be hard.

that's how to set the peds rotation to the players rotation.

Link to comment

Hmm.. I was just thinking. To make the tail work as it should, I need to set each new ped to follow the ped created before it.

But doesnt that just take us straight back to the table?

I mean, at this point there is really no control of the tail, other than that its attached to the player. But it doesnt respond very well to the mouse yet. I have been thinking and drawing on a piece of paper how I would be able to make it, but I always end up at the table :P

Hope you understand :-s

Link to comment

ok,

1. don't double post use the EDIT botton instead

2. ye i understand, it's really hard to do what you want but yes in order to control all the peds you need a table but... you dont need ped[number] = createPed you can do this

local peds = {} 
table.insert(peds, lastPed) 
-- later if needed 
table.remove(peds, ped) 

so we don't get back to the messy stuff

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...