Page 1 of 1

Changing entity move collide

Posted: Wed Aug 15, 2018 5:35 pm
by velocity
In the wiki the Entity class doesn't contain Entity(index).move_collide, but MoveCollide does exist in the wiki, so how do I change the entity move collide group.

I looked up the property, it is called "m_MoveCollide", but I don't know which type of property it is. get_property_x?

Re: Changing entity move collide

Posted: Wed Aug 15, 2018 7:11 pm
by L'In20Cible
Run the following command:

Code: Select all

sp dump server_classes classes;sp dump datamaps datamaps

Then check the classes.txt and datamaps.txt files generated into the ../logs/source-python directory. A little hint, MoveCollide is an Enum so their values are integer.

Re: Changing entity move collide

Posted: Wed Aug 15, 2018 11:17 pm
by velocity
Server crash when I try to do Entity(index).get_property_int('m_MoveCollide').

Re: Changing entity move collide

Posted: Wed Aug 15, 2018 11:21 pm
by L'In20Cible
velocity wrote:Server crash when I try to do Entity(index).get_property_int('m_MoveCollide').

Complete code? It is unlikely to crash cause of that line, so the crash must be somewhere else.