IPB

Welcome Guest ( Log In | Register )

Sidewinder, anti-air missile to cobra gunner.
Miłosz23
post May 19 2012, 06:03 AM
Post #1


Captain
***

Group: Soldiers
Posts: 37
Joined: 18-October 10
From: Cracow, Poland
Member No.: 7,669



Can someone tell me how to add sidewinder, anti-air missile to cobra gunner? What part of code is responsible for what what seat in vehicle can operate this weapon? I know how to add weapon to heli pilot as altfire, and everything works, but now I want add anti-air to gunner only.

I hope u all will understand what I want, once again, I want add anti-air missiles to be operated by gunner only in cobra, can someone tell me how do this? I know how to add them, by pasting and putting code, i mean weapons, but I don't know how to make them to be operated by one seat in vehicle only?

If someone will help me, and explain this thing nicely I will be very grateful, sorry for me english. smile.gif

This post has been edited by Miłosz23: May 19 2012, 06:08 AM


--------------------
 Sorry for my English, i still learn this language :-) 
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies (1 - 2)
clivewil
post May 19 2012, 06:55 AM
Post #2


Relic
Group Icon

Group: Mr. Admin
Posts: 2,007,411
Joined: 24-July 07
From: Perth, Western Australia
Member No.: 3,545



QUOTE
I know how to add them, by pasting and putting code, i mean weapons, but I don't know how to make them to be operated by one seat in vehicle only?

ok if you already know how to add the launcher itself - the only real difference is that instead of putting the line like ObjectTemplate.addTemplate AHE_AH1Z_AAMLauncher in the main section, instead you look for ObjectTemplate.activeSafe PlayerControlObject AHE_AH1Z_COgunner and paste it into his 'addTemplate' section there. anything you stick in there will be under his control instead of the pilot's.

bear in mind that if his PCO (PlayerControlObject) is not at position 0/0/0 - and it probably won't be - then whatever you add to his PCO will be offset by the same amount his PCO is, e.g. if his PCO position is at 0/0/5 then whatever you add to him will be 5 metres forwards from where it would be if the pilot had it.

look in the .con for the right values to use, and apply these same values to your launcher's position *but in negative* to put everything back in its proper position, e.g. in my example above you'd use ObjectTemplate.setPosition 0/0/-5


--------------------
Go to the top of the page
 
+Quote Post
Miłosz23
post May 27 2012, 08:54 AM
Post #3


Captain
***

Group: Soldiers
Posts: 37
Joined: 18-October 10
From: Cracow, Poland
Member No.: 7,669



Clivewil, thank you for help, now I have much better cobra. What I do now, i just realize that can even add zoom to copilot gun, using flarefire, cause copilot don’t use flares. Looks like similar choppers are in POE2 mod.

I think that topic should be in tutorial section in this forum, because informantions what clive give me, are very helpful for everyone who planning do something similar to me.

This post has been edited by Miłosz23: May 27 2012, 09:28 AM


--------------------
 Sorry for my English, i still learn this language :-) 
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd May 2013 - 04:53 PM