nikashubaiton Posted April 10, 2017 Posted April 10, 2017 (edited) As said above, the message when I try to make a new script is: the parent script doesn't exist please choose one that does I get it when clicking "OK" on the image below, no matter how I fill any of the text boxes. In fact I'm not even sure what goes in the "namespace" area. Any help would be appreciated! The script I'm trying to add to it after by the way, is to make the cell itself immediately count as "cleared" for workshop purposes. It's:Scriptname LocationClearedScript extends ObjectReferenceLocation property LocationToClear autoAUTO STATE Waiting Event OnCellAttach() GoToState("Done") LocationToClear.SetCleared() EndEventENDSTATESTATE Done Event OnCellAttach() ; EndEventENDSTATE Edited April 10, 2017 by nikashubaiton
nikashubaiton Posted April 10, 2017 Author Posted April 10, 2017 I actually redownloaded and that part is fixed, so now I just need to figure out how to do the scriptwork
Lisselli Posted April 10, 2017 Posted April 10, 2017 You can ignore the Namespace, it's just some organizational thing put in. It seems you know how to add a script, so now it's just a matter of getting information on the Location.
caleb68 Posted April 10, 2017 Posted April 10, 2017 namespace sometimes screws with scripts and causes them not to fire :/ sadly... so i'd leave namespace blank just to avoid problems. Also sense your attempting to paste the whole script bit in the source, you'll want to name your script the same as the snip, LocationClearedScript Alternatively, you could add a DefaultDummy into the cell, size it to cover part of the area (im assuming your still doing this for your workshop) and add the script DefaultClearLocationOnTriggerScript when the player walks into the space the defautdummy is covering, the location you set in the properties of that script will be set to cleared. You can resize the default dummy by having it selected in the render window and pressing 2, this will bring up the size gizmo, just drag the arrows to size it in the different directions. This would keep it compatable with consoles :)
Recommended Posts