|
I am working on creating a respawn script in Javascript and I am getting three "BCE0043 Unexpected token: .." errors when I try to run the program. They are on lines 7-9, all three of the variables in the Start function. Here is my code: Any help would be greatly appreciated. Thanks in advance.
(comments are locked)
|
|
Not quite sure why you're trying to use a hashtable for that; just use a Vector3.
(comments are locked)
|
|
Actually, nevermind, I completely changed my code to work in Vector3 correctly. Here it is if this helps anyone else: #pragma strict Take a look at my answer; you can just assign a Vector3, you don't need to do x, y, and z separately.
Apr 04 '12 at 01:47 AM
Eric5h5
Indeed, you don't have to make manually a copy of the Vector3 because it is not a reference-type but a value-type. Thus assignation always makes a copy.
Apr 04 '12 at 07:05 AM
Kryptos
(comments are locked)
|
