Blockland Forums > Modification Help
Getting the vehicle from it's spawn
Fatcorny:
I would do echo(_BrickNameHere.Vehicle);
Kalphiter:
--- Quote from: Fatcorny on August 03, 2010, 09:34:34 PM ---I would do echo(_BrickNameHere.Vehicle);
--- End quote ---
Go away, you're not helping.
MegaScientifical:
--- Quote from: MegaScientifical on August 02, 2010, 10:59:52 AM ---
--- Quote from: Snaily on August 02, 2010, 10:58:31 AM ---I didn't type %brick in the console. I listed serverConnection objects, found the spawn brick's id, and used that as a reference.
Something like this:
--- Code: ---echo(27801.vehicle);
--- End code ---
--- End quote ---
That's your problem. The ServerConnection doesn't take the variables, the server does. ServerConnection is your connection to the server. As host, you are just directly perceiving your server.
--- End quote ---
Okay, since you just completely f*cking ignored me, I will say again: You've been taking your Client-Side objects, not Server-Side. Even as the host, your ServerConnection technically works as a client. You have to get the Server-Side objects, because Client-Side objects don't get most of the data. They're just meant to display.
Do you hear me? You can't use ServerConnection to get the brick's information.
Snaily:
I'm aware, and I fixed the problem.
--- Quote from: Snaily on August 02, 2010, 10:28:12 AM ---Everything's working now. Thanks peeps.
--- End quote ---
Fatcorny:
--- Quote from: Kalphiter on August 03, 2010, 09:38:07 PM ---Go away, you're not helping.
--- End quote ---
Hey, I'm not that good at scripting. I just whipped that up. Sheesh.