Forum

> > Stranded II > Scripts > Attack in vehicle
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Attack in vehicle

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Attack in vehicle

SlyCooperReloadCoded
User Off Offline

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

alt Re: Attack in vehicle

Hurri04
Super User Off Offline

Zitieren
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.
1× editiert, zuletzt 12.06.11 13:17:37
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht