Jump to content

Recommended Posts

Unfortunaly, I don't think there is a possibility...

If you look at the metatable of DynamicShadow, only Enable and SetSize are defined so I don't think there is anything else:

ReceiveRemoteExecute(dumptable(getmetatable(ThePlayer.DynamicShadow))) @(72.00, -369.65)
[00:00:58]: 	K: 	__gc	 V: 	function: 000000000D6AC420	
[00:00:58]: 	K: 	__index	 V: 	table: 000000000B563AB0	
[00:00:58]: 		K: 	Enable	 V: 	function: 000000000E2B9AA0	
[00:00:58]: 		K: 	SetSize	 V: 	function: 000000000E2B94E0	
[00:00:58]: 	K: 	__tostring	 V: 	function: 000000000D6AC7E0	

 

  • Thanks 1

There is no built-in function to do that, but you can add one yourself. Note that this this doesn't have any networking

local Vector3 = GLOBAL.Vector3
local DynamicShadow = GLOBAL.DynamicShadow
local SetSizeProxy = DynamicShadow.SetSize

local _dynamicshadowsizes = setmetatable({}, { __mode = "k" })

function DynamicShadow:SetSize(...)
	_dynamicshadowsizes[self] = Vector3(...)
	return SetSizeProxy(self, ...)
end

function DynamicShadow:GetSize()
	if _dynamicshadowsizes[self] ~= nil then
		return _dynamicshadowsizes[self]:Get()
	end
end
  • Like 1

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