Call to Arms - Gates of Hell: Ostfront

Call to Arms - Gates of Hell: Ostfront

View Stats:
Camera Bone & Loop Command
Hi All.

I have managed to achieve the camera_follow_bone attached to a vehicle and it moving forwards with camera showing turret and thus camera moving forward to. I was having problems concerning the camera only showing rear of vehicle but after some tweaking numbers in camera_follow_bone properties I found it was y and z angle that eventually fixed the problem.

Anyway, now I have been experimenting with a loop command of 4 Russian vehicles the count being (4) and I would like the camera_follow_bone to be attached to a chosen at random vehicle. I have tried putting into the loop command 4 individual camera_follow_bone modules, each module for each vehicle all with the same camera settings (apart from slot_id's and bone names) and this all applied to. But it never worked. The vehicles spawned in as normal but no camera attached. So I added the camera_follow_bone modules outside of the loop command but still to no avail.

I am still experimenting but thought I would ask if what I am trying to do is actually achievable as I would like to implement this idea in my close quarter work.

Thanks.
Last edited by m1x3d_up_g4m3r; Aug 12, 2023 @ 3:41pm
< >
Showing 1-7 of 7 comments
m1x3d_up_g4m3r Aug 12, 2023 @ 5:47pm 
Anybody?
Therates Aug 13, 2023 @ 4:32am 
This is a switch command I used to randomly cycle through 4 vehicles:

{"follow"
{condition
}
{actions
{"switch"
{"case"
{condition
{type rand}
{value 0.25}
}
{"camera_follow_bone"
{entity 32768}
{bone body}
{fov 50}
{offest
{x -250}
{y 0}
{z 50}
}
{"y angle" 0}
{"z angle" 0}
{apply}
}
}
{"case"
{condition
{type rand}
{value 0.25}
}
{"camera_follow_bone"
{entity 32772}
{bone body}
{fov 50}
{offest
{x -250}
{y 0}
{z 50}
}
{"y angle" 0}
{"z angle" 0}
{apply}
}
}
{"case"
{condition
{type rand}
{value 0.25}
}
{"camera_follow_bone"
{entity 32779}
{bone body}
{fov 50}
{offest
{x -250}
{y 0}
{z 50}
}
{"y angle" 0}
{"z angle" 0}
{apply}
}
}
{"case"
{condition
{type rand}
{value 0.25}
}
{"camera_follow_bone"
{entity 49152}
{bone body}
{fov 50}
{offest
{x -250}
{y 0}
{z 50}
}
{"y angle" 0}
{"z angle" 0}
{apply}
}
}
}
{"delay"
{time 7}
}
{"trigger"
{name "follow"}
}
}
}
m1x3d_up_g4m3r Aug 13, 2023 @ 7:45am 
Originally posted by Therates:
This is a switch command I used to randomly cycle through 4 vehicles:

{"follow"
{condition
}
{actions
{"switch"
{"case"
{condition
{type rand}
{value 0.25}
}
{"camera_follow_bone"
{entity 32768}
{bone body}
{fov 50}
{offest
{x -250}
{y 0}
{z 50}
}
{"y angle" 0}
{"z angle" 0}
{apply}
}
}
{"case"
{condition
{type rand}
{value 0.25}
}
{"camera_follow_bone"
{entity 32772}
{bone body}
{fov 50}
{offest
{x -250}
{y 0}
{z 50}
}
{"y angle" 0}
{"z angle" 0}
{apply}
}
}
{"case"
{condition
{type rand}
{value 0.25}
}
{"camera_follow_bone"
{entity 32779}
{bone body}
{fov 50}
{offest
{x -250}
{y 0}
{z 50}
}
{"y angle" 0}
{"z angle" 0}
{apply}
}
}
{"case"
{condition
{type rand}
{value 0.25}
}
{"camera_follow_bone"
{entity 49152}
{bone body}
{fov 50}
{offest
{x -250}
{y 0}
{z 50}
}
{"y angle" 0}
{"z angle" 0}
{apply}
}
}
}
{"delay"
{time 7}
}
{"trigger"
{name "follow"}
}
}
}
Hey, thanks for this but how exactly am I supposed to add the vehicles in? What I mean is I have created the script structure using your idea but of course, this script outside of loop command. Anyway, the vehicles spawn in only with no camera attached. This with using the slot ids and bone names belonging to the vehicles I am using. I have managed one camera already near enough what I want to achieve but I want it so on each spawn of random vehicles then camera attached to random vehicle. Thanks for the feedback.
Last edited by m1x3d_up_g4m3r; Aug 13, 2023 @ 7:46am
Therates Aug 13, 2023 @ 8:58am 
I don't know how get the slot ID of a new unit spawned in. In my example I used 4 vehicles already on the map, so all their data was available. Do you need to use the spawn command? Could you use waypoint instead?

P.S. How did you get the slot ID of the original unit?
Last edited by Therates; Aug 13, 2023 @ 9:02am
m1x3d_up_g4m3r Aug 14, 2023 @ 1:05am 
Originally posted by Therates:
I don't know how get the slot ID of a new unit spawned in. In my example I used 4 vehicles already on the map, so all their data was available. Do you need to use the spawn command? Could you use waypoint instead?

P.S. How did you get the slot ID of the original unit?

Oh I see. Well, I don't use spawn command, to be honest, I have never used it. Way points yes I am using them for the vehicles in loop command. I have managed to get camera attached to moving vehicles with turret showing etc but only with using basic spawn using actor_to_waypoint etc for one vehicle only which is great but well, now I been tinkering with the loop command.

How do you have your vehicles set up so for the camera_follow_bones to work? I think if I knew then it would work. And the slot ID I took from selected vehicles properties which is slot ID's inputted into 4 separate camera_follow_bone modules, each camera_follow_bone module representing a vehicle, which is 4 vehicles in all.

The way I have it now setup is in trigger name - follow, which is your idea regarding the camera_follow_bone and a separate trigger for the loop command.

Thanks for the help.
It means a lot.
Last edited by m1x3d_up_g4m3r; Aug 14, 2023 @ 1:31am
Therates Aug 14, 2023 @ 3:13am 
In my example I manually placed 4 vehicles on the map: t34, gaz67, gaz-aaa, and a ba10.
Then I checked their properties to get the slot IDs to use in the trigger.

If you want to re-position them you will need to use the waypoint or placement command, but don't check the clone option because this will generate a new slot ID.

Also, the x=-250,z=50 values may need to be tweaked for different vehicles, and if you increase the z value you will need to decrease the x value.

Glad I could help, hope you get everything working.
m1x3d_up_g4m3r Aug 14, 2023 @ 3:16am 
Originally posted by Therates:
In my example I manually placed 4 vehicles on the map: t34, gaz67, gaz-aaa, and a ba10.
Then I checked their properties to get the slot IDs to use in the trigger.

If you want to re-position them you will need to use the waypoint or placement command, but don't check the clone option because this will generate a new slot ID.

Also, the x=-250,z=50 values may need to be tweaked for different vehicles, and if you increase the z value you will need to decrease the x value.

Glad I could help, hope you get everything working.

Ah, thank you so much for your feedback. I will surely take on board your info especially, increasing z value over x value. That's a crucial tip in my book.

Thanks again.
Last edited by m1x3d_up_g4m3r; Aug 14, 2023 @ 3:17am
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Aug 12, 2023 @ 3:35pm
Posts: 7