New answers tagged scripting
To cycle through different names/settings/scripts etc you need to follow the following pattern (At the end there is the full code if you want to skip the details): Step 1: Set a starting point alias cycler "useName1" Now if we trigger cycler -> useName1 will be executed. cycler and useName1 are names i made up. You can change those to whatever fits your ...
The object you're colliding with does not have the Ladder component. If you try to get a component from an object that doesn't have it, GetComponent will return null. You should check to make the sure component isn't null before doing anything with it, but you should probably make sure the object you're trying to latch on to is a ladder in the first place. ...
Most likely latchedLadder has no Ladder component, in which case latchedLadder.GetComponent<Ladder>(); returns null;
Part of this answer is going to depend on the specific scripting language and implementation. Passing objects vs values can have different performance characteristics for different languages and which you choose may well depend on your scripting language. I don't know Jython personally but if in doubt you can perform tests to see if there is any ...
Top 50 recent answers are included