like in sourcemod:
Syntax: Select all
SetEntityMoveType(client, MOVETYPE_WALK);
Syntax: Select all
SetEntityMoveType(client, MOVETYPE_WALK);
Syntax: Select all
from players.entity import Player
from entities.constants import MoveType
player = Player(1)
player.move_type = MoveType.WALK
Ayuto wrote:Syntax: Select all
from players.entity import Player
from entities.constants import MoveType
player = Player(1)
player.move_type = MoveType.WALK
Available move types:
http://wiki.sourcepython.com/developing ... s.MoveType
velocity wrote:I dont see <Player>.move_type anywhere in the wiki?
Syntax: Select all
for attribute in dir(player):
print(attribute)
L'In20Cible wrote:velocity wrote:I dont see <Player>.move_type anywhere in the wiki?
This attribute is generated dynamically via the data files. Each entity has specific attributes depending of their inheritance hierarchy. Adding them on the wiki is difficult since they are known at run-time depending of the entity type you get an instance of. However, you can use the following to dump all the properties of the instance itself:Syntax: Select all
for attribute in dir(player):
print(attribute)
Syntax: Select all
player.set_property_int('m_nSequence', PlayerAnimation.WALK)
Ayuto wrote:However, I think there is more to do than just setting the property.
Return to “Plugin Development Support”
Users browsing this forum: No registered users and 65 guests