m_angRotation

Please post any questions about developing your plugin here. Please use the search function before posting!
InvisibleSoldiers
Senior Member
Posts: 114
Joined: Fri Mar 15, 2019 6:08 am

m_angRotation

Postby InvisibleSoldiers » Tue Jan 21, 2020 3:36 am

What is wrong with standard http://wiki.sourcepython.com/developing ... y.rotation
property?
It works properly when entity.set_network_property_vector('m_angRotation', ...)
User avatar
Hymns For Disco
Member
Posts: 32
Joined: Wed Nov 22, 2017 7:18 am
Contact:

Re: m_angRotation

Postby Hymns For Disco » Tue Jan 21, 2020 3:43 am

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?
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: m_angRotation

Postby L'In20Cible » Tue Jan 21, 2020 11:46 am

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)
)

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 47 guests