English Attack in vehicle

2 replies
Goto Page
To the start Previous 1 Next To the start
12.06.11 12:05:04 am
Let's say you have a fighter jet in S2. When you get in the fighter jet, you attack with your hands. Would it be possible to script so that the player fires the figter jet's weapons instead of attacking with his hands?
12.06.11 01:04:57 am
Super User
Offline Off
yes, all you have to do is write a script into the game.inf file that starts on:attack1 and checks whether the player is in the jet (use s2 cmd riding) and then use s2 cmd projectile or something to shoot.

Edit: oh, I forgot, you might want to use s2 cmd type to check what type the unit with the ID is which you receive from the riding command. because with this you can compare the type of the unit you're riding with the type-number of the jet in the definition script. if it matches, use the projectile command.
edited 1×, last 12.06.11 01:17:37 pm
12.06.11 12:58:45 pm
Thanks a million Hurri04! I'm not very good at scripting, but I just wanted to know if that was possible! Thanks again!
To the start Previous 1 Next To the start