Page 1 of 1

m_angRotation

Posted: Tue Jan 21, 2020 3:36 am
by InvisibleSoldiers
What is wrong with standard http://wiki.sourcepython.com/developing ... y.rotation
property?
It works properly when entity.set_network_property_vector('m_angRotation', ...)

Re: m_angRotation

Posted: Tue Jan 21, 2020 3:43 am
by Hymns For Disco
InvisibleSoldiers wrote:What is wrong with standard http://wiki.sourcepython.com/developing ... y.rotation
property?
It works properly when entity.set_network_property_vector('m_angRotation', ...)

Perhaps you should answer your own question here, what's wrong with BaseEntity.rotation? Are you saying that it does not work for you? What is it doing vs what were you expecting?

Re: m_angRotation

Posted: Tue Jan 21, 2020 11:46 am
by L'In20Cible
It works fine for me:

Syntax: Select all

from random import randint

from filters.entities import EntityIter
from mathlib import QAngle

for entity in EntityIter():
entity.rotation = QAngle(
randint(0, 360), randint(0, 360), randint(0, 360)
)