Forum

> > CS2D > Scripts > SpawnObject's param 'mode'?
Forums overviewCS2D overview Scripts overviewLog in to reply

English SpawnObject's param 'mode'?

4 replies
To the start Previous 1 Next To the start

old SpawnObject's param 'mode'?

Apache uwu
User Off Offline

Quote
I have no idea what it's supposed to do. I feel dumdum :D.
Maybe it's related to state data?

CS2D Help has written
spawnobject

Parameters

type (1-X): object type

x (0-X): x pos in pixels/tiles (depending on type)

y (0-X): y pos in pixels/tiles (depending on type)

rot (0-360): rotation

mode (0-X): object mode

team (0-X): object team (0=neutral, 1=T, 2=CT)

player (0-X): player (creator)


Info
Create an object (as server only). Objects are buildings, mines, portals etc.

Values depend on the type of the object.


Please help DC or someone who knows these arguments well. I want to know what it does.

old Re: SpawnObject's param 'mode'?

DC
Admin Off Offline

Quote
mode is used for different stuff, depending on the object type. many objects don't use the mode variable at all.

there's actually nothing cool you could do with this. at least I don't remember anything useful atm.

just ignore this parameter and set it to 0.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview