Jump to content

Recommended Posts

Basically, I'm trying to get the active wormhole when the player uses it from the client side.

I was trying to hook into the player's stategraph and get it with FindEntities, but it says that sg is nil with the following:

AddPlayerPostInit(function(inst)
	print(inst.sg)
end)

Am I missing something?

Also, is there an easier way to do this? The wormhole pushes some events to the doer but I'm not sure if you can listen to them as a client.

 

EDIT: Forgot AddStategraphPostInit is a thing. Also, FindEntities. Got it all working now. I'm still interested in the events though, to optimize things.

Edited by Ryuushu

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