What is wrong with standard http://wiki.sourcepython.com/developing ... y.rotation
property?
It works properly when entity.set_network_property_vector('m_angRotation', ...)
m_angRotation
-
- Senior Member
- Posts: 114
- Joined: Fri Mar 15, 2019 6:08 am
- Hymns For Disco
- Member
- Posts: 32
- Joined: Wed Nov 22, 2017 7:18 am
- Contact:
Re: m_angRotation
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?
- L'In20Cible
- Project Leader
- Posts: 1536
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Re: m_angRotation
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 58 guests