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?
Changing entity move collide
- L'In20Cible
- Project Leader
- Posts: 1536
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Re: Changing entity move collide
Run the following command:
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.
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
Server crash when I try to do Entity(index).get_property_int('m_MoveCollide').
- L'In20Cible
- Project Leader
- Posts: 1536
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Re: Changing entity move collide
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.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 80 guests