Skip to content

u/_Candela_

In this archive from Apr 2020 to Oct 2020

2
posts
6
comments
0
media
14
score

Hmm, Ran into another issue (sorry to keep bugging you). even when setting `unit.position` to a hardcoded vector, like `unit.position = Vector3(1, 1, 1)` I get an error: `Invalid set index 'position' (on base: spatial) with value of type 'Vector 3'` Any ideas as to how to fix this?

1 points

Thank you very much for the answer!, However, I am running into an error when attempting to utlize it. It says Invalid type in function add_child in base KinematicBody (Player.gd) The Object-Derived classs of argument 1 (packedSceen_ is not a subclass of the expected argument For context, my player (where I inserted your code) is a seperate scene, which I then have linked to the main scene. Should I change this to get it to work?

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.