- Home /
Question by
twoface262 · Jan 15, 2012 at 06:47 AM ·
javascriptnetwork
Network Error
Hell, I'm getting a weird error in this code and I'm babbled by it and don't know what to do about it. Here is the code.
if (networkView.isMine) { var _NetworkRigidbody : NetworkRigidbody = GetComponent("NetworkRigidbody"); _NetworkRigidbody.enabled = false; } else { name += "Remote"; var _NetworkRigidbody2 : NetworkRigidbody = GetComponent("NetworkRigidbody"); _NetworkRigidbody2.enabled = true; } } and the error is thisfunction OnNetworkInstantiate (msg : NetworkMessageInfo) {
Assets/NetworkFIles/RigidAssign.js(14,27): BCE0018: The name 'NetworkRigidbody' does not denote a valid type ('not found'). Did you mean 'UnityEngine.NetworkReachability'?
Comment
Your answer
Follow this Question
Related Questions
RPC kill counter 1 Answer
A node in a childnode? 1 Answer
GetComponent Help. 1 Answer
Delete last 5 Clones so only 5 exist 2 Answers
Unity 4.6 beta button with Javascript rather than C# 2 Answers