Fairly new to lua so sorry for possible wrong phrasing.
I have a model parented to another entity. its supposed to play an animtion.
Usually this does the trick:
self:ResetSequence(self:LookupSequence("drive"))
self:SetPlaybackRate(1)
However this does not work:
self.wheel:ResetSequence(self.wheel:LookupSequence("drive"))
self.wheel:SetPlaybackRate(1)
Had this problem many times now :/ any help? thanks
PS: SetSequence or any combination of the two makes no difference
What class is the wheel? If its prop_physics I think you need to use a prop_dynamic instead, if I recall physic props have trouble playing their sequences
it was "base_anim" prop_dynamic works as expected thank you !
Oh, if its a Lua entity, you can use ENTITY/SetAutomaticFrameAdvance and check if it works then, but most of the time you can just use prop_dynamic instead of creating another entity
Sorry, you need to Log In to post a reply to this thread.