Forum

> > CS2D > Scripts > coordinate
Forums overviewCS2D overview Scripts overviewLog in to reply

English coordinate

2 replies
To the start Previous 1 Next To the start

old coordinate

Xlucam14X
User Off Offline

Quote
I need a script coordinate to make maps with scripts spawns as Carmod v4

old Re: coordinate

Apache uwu
User Off Offline

Quote
I think he wants to spawn a car with file File does not exist (6036).

If you look directly at it's info section you can see how you can spawn it.

The console command is


1
spawncar <x> <y> <max changes> <rot> <sprite dir> <sprite scale X> <sprite scale Y> <fuel> <health>

So I assume you wanted...

1
2
3
4
5
addhook("spawn","_spawn")

function _spawn(id)
	parse("spawncar "..player(id,"x").." "..player(id,"y").."--------")
end

The lines I left were up to you. Max changes, I believe is the friction on turn, rot=rotation, sprite dir is the rotation of the image, scales, fuel and health.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview