Forum

> > Stranded II > Scripts > Attack in vehicle
Forums overviewStranded II overview Scripts overviewLog in to reply

English Attack in vehicle

2 replies
To the start Previous 1 Next To the start

old Attack in vehicle

SlyCooperReloadCoded
User Off Offline

Quote
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?

old Re: Attack in vehicle

Hurri04
Super User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview