Jump to content

Entity.AddFollower behaves differently from DST


Rickzzs
  • DLC VERSION - IMPORTANT!: Vanilla - NO DLC, Reign of Giants, Shipwrecked, Hamlet Pending

In DST the code is:

inst.entity:AddFollower()

inst.entity:SetParent(parent.entity)

inst.Follower:FollowSymbol(parent.GUID,"",0,0,0)

but in DS AddFollower cannot be used together with SetParent. This will cause the position to double.

Also, in DS ther is no Follower.StopFollowing.


Steps to Reproduce

c_teleport(0,0,0)

spawn an inst.

parent=GetPlayer()

inst.entity:AddFollower()

inst.entity:SetParent(parent.entity)

inst.Follower:FollowSymbol(parent.GUID,"",0,0,0)

walk and look at how inst moves.

  • Like 1



User Feedback


This really needs to be fixed, because there was supposed to have a Red Lantern in Hamlet DLC in 2019's Year of the PigĀ (I want to see it again in future QoL), but after my test, these two things obviously collided and appeared in the wrong place (namely 0,0,0).

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...