Jump to content

Can't attach 2 "identical" scripts to an object?


Recommended Posts

Oh wow, you guys are really getting into this ...

 

I always thought of scripts like functions and the properties would be parameters.

So the two "identical scripts with different properties" would result in something like this when the game actually "compiles" and "runs" it:

ExampleScript(0,0);
ExampleScriipt(10,-90);

But apparently that is not how this works ...

 

I think I am just going to use a "custom" script that does what I need it to do instead of getting into all this weird "array" stuff ...

Link to comment
Share on other sites

Yes you can use a custom script too and that will work. For scripts there are 2 schools of thought. One is Generic, where you use the same script on multiple forms and can set different property values on each. Or specific, where you use one script for one form that does a specific thing. If the quest you are getting stage events from is a custom quest you made, I would recommend just using the stage fragments. If it's a vanilla quest, then using RegisterForRemoteEvent like you're doing is best so it doesn't conflict with other mods.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...