Forum

> > CS2D > Scripts > How to add checkpoint with lua??
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to add checkpoint with lua??

4 replies
To the start Previous 1 Next To the start

old How to add checkpoint with lua??

Obviously Exactly Myself
User Off Offline

Quote
I made a standard map and I don't know how to add checkpoints like when you move to them they will save your weps and armor and health then when you die you spawn back to them and you have your old weps and armor and health.
edited 1×, last 26.11.11 02:45:07 pm

old Re: How to add checkpoint with lua??

MikuAuahDark
User Off Offline

Quote
whew. it's hard. here:
More >

just tell me if there errors
edited 1×, last 26.11.11 04:17:55 pm

old @Idlers

Obviously Exactly Myself
User Off Offline

Quote
WAIT! I have 10 checkpoints in my maps, just tell me where will I put the X and Y. And when you reach the 11th checkpoint it will reset the checkpoints and you will spawn on your original spawn area. yes pls...

BTW, I don't need it anymore unless you give the script.
edited 1×, last 28.11.11 10:12:10 am

old Re: How to add checkpoint with lua??

MikuAuahDark
User Off Offline

Quote
@user Obviously Exactly Myself: why you not say it before?
where you put the checkpoints? at here:
1
2
3
checkpoints={
{x,y},
}
so if you want more checkpoints, just copy:
1
{x,y},
and change x to checkpoint x position. change y to checkpoint y position
and here the new code:
Spoiler >
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview