Variable not being used in demo playback.
by Peterjohn Griffiths · in Torque Game Engine · 08/27/2006 (3:27 pm) · 4 replies
Hi,
Bit new to Torque, I have released a variable to the scripting language in Vehicle.h and .cc and can use it fine in the function Vehicle::updateMove but when playing back demo's it isn't being used. This is causing a lot of jumping and chopping around.
What I'm trying to achieve is a variable for each client to change the handeling of the car that could be different for each player who joins the game.
Anyone know how to approach this correctly?.
Many thanks
Bit new to Torque, I have released a variable to the scripting language in Vehicle.h and .cc and can use it fine in the function Vehicle::updateMove but when playing back demo's it isn't being used. This is causing a lot of jumping and chopping around.
What I'm trying to achieve is a variable for each client to change the handeling of the car that could be different for each player who joins the game.
Anyone know how to approach this correctly?.
Many thanks
#2
09/01/2006 (2:15 pm)
How are you changing the variable to start with?
#3
09/01/2006 (2:21 pm)
I think I saw somewhere that when an object is not being controlled by a netconnection then the updates are reduced in resolution. I don't know if this is your problem because I am not sure how the whole demo playback works. Also, is this controlled outside of the "move" structure? If it is maybe the demo code only uses the move structure as input and would not see anything else.
#4
I think I need to go along the lines of what happends with weapon items when picked up.
These play back fine through the demo and ill take a look into these to try and get a better idea on how to release variables correctly for manipulation through script.
Many thanks.
09/02/2006 (10:25 pm)
I am changing it through the options dialog, throught script.I think I need to go along the lines of what happends with weapon items when picked up.
These play back fine through the demo and ill take a look into these to try and get a better idea on how to release variables correctly for manipulation through script.
Many thanks.
Torque Owner Peterjohn Griffiths
Default Studio Name