Artillery mode question

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Artillery mode question

Post by Vilespring »

What line of code allows the Wespe, Priest, and the Sexton to use the artillery view for long range bombardments by pressing right click? I've made a SPG that I want to be able to use this mode, but I cannot find how.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Artillery mode question

Post by freddy »

The "trace" code i belive

Code: Select all

rem *** WespeGunnerCamera ***
ObjectTemplate.create Camera WespeGunnerCamera
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY
ObjectTemplate.CVMExternTrace 1   <----------------- meep
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Artillery mode question

Post by Vilespring »

Okay, I'll test that. I feel like I need to show what it looks like, it's so outrageous because I build my vehicles with random parts I can find...

EDIT: welp, it isn't that.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Artillery mode question

Post by freddy »

ohh it seems theres more to it, code working together kinda

Code: Select all

rem *** Wespe_Gunner_PCO1 ***
ObjectTemplate.create PlayerControlObject Wespe_Gunner_PCO1
" alot of code"
and
ObjectTemplate.artPos 1   <--------------- this one!
CVMExternTrace http://bfmods.com/mdt/scripting/ObjectT ... Trace.html

ObjectTemplate.ArtPos http://bfmods.com/mdt/scripting/ObjectT ... rtPos.html
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Artillery mode question

Post by Vilespring »

yup, that did it. had to do some fidgeting to get the elevation and traverse ticks right! :lol:
you know, those things can do so many strange things!
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Post Reply