New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Getting the inserted object in a plugin?

Asked by 12 days ago

I am trying to change the properties of any object that is inserted into my game (in studio) through a plugin. I couldn't find anything that would return the inserted object. Is this possible? any workarounds?

Thanks.

1 answer

Log in to vote
0
Answered by 12 days ago

I am not sure if you can do that but one other way is using Selection

It's basically a service for plugins that lets you read and modify what's selected. So for your situation you would bind a function to SelectionChanged and in it you would change the properties.

0
@GGRBXLuaGG I tried using that, but I need this to work only when an object is newly inserted. Le_JuiceBOX 54 — 12d
Ad

Answer this question