You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
struct GameInfo {
int time_since_player_hit_vehicle;
int time_since_player_hit_ped;
int time_since_player_drove_on_pavement;
int time_since_player_drove_against_traffic;
int dead;
Vec3f position, forward_vector;
float heading;
int on_foot, in_vehicle, on_bike, money;
float4x4 avg_world;
float4x4 avg_world_view;
float4x4 avg_world_view_projection;
};
But, the output returns just a "1": {"time_since_player_hit_vehicle":-1,"time_since_player_hit_ped":-1,"time_since_player_drove_on_pavement":-1,"time_since_player_drove_against_traffic":-1,"dead":0,"position":[-14.380300,-1438.514282,31.101547],"forward_vector":[0.222740,-0.974878,0.000000],"heading":192.870010,"on_foot":1,"in_vehicle":0,"on_bike":0,"money":11,"avg_world":1,"avg_world_view":1,"avg_world_view_projection":1,"timestamp": 1534989424.864456}
Any ideas?
The text was updated successfully, but these errors were encountered:
I'm trying to add
avg_world
,avg_world_view
, andavg_world_view_proj
to the JSON output. I've created a new function:And added members to the GameInfo:
And added the members to the TOJSON macro:
But, the output returns just a "1":
{"time_since_player_hit_vehicle":-1,"time_since_player_hit_ped":-1,"time_since_player_drove_on_pavement":-1,"time_since_player_drove_against_traffic":-1,"dead":0,"position":[-14.380300,-1438.514282,31.101547],"forward_vector":[0.222740,-0.974878,0.000000],"heading":192.870010,"on_foot":1,"in_vehicle":0,"on_bike":0,"money":11,"avg_world":1,"avg_world_view":1,"avg_world_view_projection":1,"timestamp": 1534989424.864456}
Any ideas?
The text was updated successfully, but these errors were encountered: