Forum

> > CS2D > Scripts > What int.. or str.. is the sprite rotation?
Forums overviewCS2D overview Scripts overviewLog in to reply

English What int.. or str.. is the sprite rotation?

4 replies
To the start Previous 1 Next To the start

old What int.. or str.. is the sprite rotation?

Alistaire
User Off Offline

Quote
CS2D help has written
Categories
Entity

Parameters
x
y
"value"

Info

Return a value of an entity at the tile position (X|Y): exists, typename, type, name, trigger, state, int0, int1, int2, int3, int4, int5, int6, int7, int8, int9, str0, str1, str2, str3, str4, str5, str6, str7, str8, str9, aistate (int0-9 and str0-9 are used for entity settings and are different for each entity type)


WaitWUT?

Anyone explain that to me? And what is the int.. or str.. for a sprite's rotation?

old Re: What int.. or str.. is the sprite rotation?

Infinite Rain
Reviewer Off Offline

Quote
try script that return in console all ints and all strs
1
2
3
4
5
6
for l = 0, 9 do
	print(int'..l..'. '..tostring(entity(0, 0, 'int'..l))
end
for l = 0, 9 do
	print(str'..l..'. '..entity(0, 0, 'str'..l)
end
In console you will see all values

old Re: What int.. or str.. is the sprite rotation?

Kel9290
User Off Offline

Quote
this works now:
1
2
3
4
5
6
for l = 0, 9 do
     print('int'..l..'. '..tostring(entity(0, 0, 'int'..l)))
end
for l = 0, 9 do
     print('str'..l..'. '..tostring(entity(0, 0, 'str'..l)))
end

And yeah, rotation is int4
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview