getLocation() Crashing, invalid parameter type #51
-
Hello, I was running some test code to isolate my errors and the logs returned the following issue TypeError: getLocation(): incompatible function arguments. The following argument types are supported: for reference, I have included the variable declaration that got passed in here: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
getLocation() no longer has any input args; we haven't updated our general Python API docs in a while. In VS Code, you can usually control-click the one of the For the purposes of the competition, I recommend using EntityTelemetry functions such as |
Beta Was this translation helpful? Give feedback.
-
Also be careful, we haven't put out the best information on this (will address it during Task 1 feedback); if you do things such as directly call getLocation() for the movable entities in the MissionManager script, that works around the loss-of-comms functionality and is invalid for the competition. |
Beta Was this translation helpful? Give feedback.
getLocation() no longer has any input args; we haven't updated our general Python API docs in a while. In VS Code, you can usually control-click the one of the
spaceteams
/st
functions and that will take you toSC_Compute_Server.pyi
, which is guaranteed to be up to date with all of the available function signatures.For the purposes of the competition, I recommend using EntityTelemetry functions such as
ET.GetCurrentXY(entity)