Home   Help Search Login Register  

Author Topic: Start a mission looking through a binocular?  (Read 625 times)

0 Members and 1 Guest are viewing this topic.

Robinhansen

  • Guest
Start a mission looking through a binocular?
« on: 06 Sep 2003, 11:30:24 »
Well I would like to know if iit is possible to make your caracter start the mission through his binoculars... ::) ::)

Unnamed

  • Guest
Re:Start a mission looking through a binocular?
« Reply #1 on: 06 Sep 2003, 12:53:51 »
You could call a script from the players init field, containg something like this :

Code: [Select]

DoStop Soldier1

Soldier1 AddWeapon "binocular"

~0.1

Soldier1 SelectWeapon "binocular"


You cant use DoWatch to get a player to point in the right direction, so you have to adjust the players initial position and direction to get him to look where you want him to at the start.
« Last Edit: 06 Sep 2003, 12:55:11 by Unnamed »

Robinhansen

  • Guest
Re:Start a mission looking through a binocular?
« Reply #2 on: 06 Sep 2003, 18:12:09 »
ehh DoWatch ??? I need to get things described very precise.. :-[

Robinhansen

  • Guest
Re:Start a mission looking through a binocular?
« Reply #3 on: 06 Sep 2003, 18:27:53 »
I tried to write the scipt in the caracters init field - and none of it worked...Perhaps anyone know about an external script which would be usefull...  :help:

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Start a mission looking through a binocular?
« Reply #4 on: 06 Sep 2003, 18:33:09 »
that is a external script Robinhansen, just create a file and call it something.sqs and copy that into it, then in the players init field put

[] exec "something.sqs"

Unnamed

  • Guest
Re:Start a mission looking through a binocular?
« Reply #5 on: 06 Sep 2003, 19:49:21 »
Yeah sorry, I should have explained better.

If your guy is already an officer (and has Binoculars) you only have to add the following to your Init field:

Code: [Select]
This SelectWeapon "binocular"
But it's worth doing what Black_Feather suggested, just to become familiar with scripts.

BTW If he is a regular soldier, then a script is required so you can add some Binoculars and pause breifly, before getting him to use them.

Dont worry about the DoWatch command, just position your guy so he points in the direction you want him to look with his Binoculars at the start.

Robinhansen

  • Guest
Re:Start a mission looking through a binocular?
« Reply #6 on: 07 Sep 2003, 18:14:40 »
Yep that solver my problem... :cheers: m8...next problem: How does my character start the game in a prone posistion?  :P