|Battlefield Modding Tutorials BFMODS
|Trying to create more than just 2 weapons per seat.
|Page 1 of 1|
|Author:||AwesomeATrain [ Wed Oct 22, 2008 1:33 am ]|
|Post subject:||Trying to create more than just 2 weapons per seat.|
So check it, I am trying to make an ejection system for the walker (1st seat) by pressing one of the number keys on the top of the keyboard, NOT the F keys. I successfully assigned the number 8 to jump jets. Here's the code:
ObjectTemplate.create ForceObject thruster_liftheavy
That code DOES work. That lifts my heavy walker but only if I rapidly press it, which is annoying. Is there any way to have it set so I can hold it down?
That's the first part. Next, I have added pod_launcher_cq to the walker and it will work with Fire/Alt Fire but I am trying to code it so that when I press the number 5 on the keyboard it should eject the player from the walker. This however, is not working. Here is the code with the different variations I've tried:
ObjectTemplate.activeSafe GenericFireArm pod_launcher_cq
rem ---BeginComp:ThrownFireComp ---
rem ObjectTemplate.fire.fireInput PIAltFire
rem ObjectTemplate.fire.fireInput c_PIWeaponSelect5
rem ---EndComp ---
Neither "input" i use for making it launch will work. I want to have it launch the player either immediately upon pressing the number 5 OR press 5 and fire/alt fire. Somehow last light I got it set up accidently so that when you pressed the number 3 on your keyboard then right clicked it ejected you. But if you pressed the number 1, it would bring up a gray box and both the fire and alt fire worked regularily on the walker.
I want to make use of all the weapon select buttons. How can I make this work?
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group