YouDoNotKnowMyName Posted April 27, 2021 Author Posted April 27, 2021 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 ...
dylbill Posted April 27, 2021 Posted April 27, 2021 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.
YouDoNotKnowMyName Posted April 27, 2021 Author Posted April 27, 2021 so it doesn't conflict with other mods.Well this is for a secret door in a custom worldspace and I am 99,9% sure that I will never release this mod to the public, so I don't think that that would be a problem ...
Recommended Posts