Home   Help Search Login Register  

Author Topic: Disable Command view ???  (Read 989 times)

0 Members and 2 Guests are viewing this topic.

Offline nettrucker

  • Members
  • *
  • Too young to die-OFP Campaign by TOY & nettrucker
Disable Command view ???
« on: 26 Jan 2005, 11:45:23 »
Hi, everybody!
Hi.
I was wondering if it's possible to turn off the command view in a mission, because I don't want the player to have access to this feature. Any help is really appreciated.
I really need some help plz..I think I took a step ahead to the solution. General Barron gave me small script which disables the CV (command view) there's just one little defect you disable optics too. General barrons scrpit works fine you can really disable the CV.

#loop
player switchcamera "internal"
~0.0
? alive player : goto "loop"
exit

Optics are too important to miss. My buddy and me are due to release a mini campaign. We would like to avoid that the player can use the CV. It's an important thing to us. I need some help of all you scripters out there. Thanks for replying. ;D

Komuna

  • Guest
Re:Disable Command view ???
« Reply #1 on: 26 Jan 2005, 12:07:34 »
Well, Barron's code is right.
That code is supposed to prevent the user from using other than the "internal" (1st person) view, by permanently forcing it. Therefore, you can no longer use "gunner", "external" or "group" views.

The same will happen if you disable the external view through the options menu.

Sorry, mate, but there haven't been found any solutions to this, at least that I know.

You could try adding a menu action that switches from "external" to "gunner" view and vice-versa. Anyway, it will be kind of odd to use...

GI-YO

  • Guest
Re:Disable Command view ???
« Reply #2 on: 26 Jan 2005, 16:39:53 »
I think this might be what your looking for, search the ed department for Viewport Detection by vektorboson. Hope thats good for you.

GI-YO

Offline nettrucker

  • Members
  • *
  • Too young to die-OFP Campaign by TOY & nettrucker
Re:Disable Command view ???
« Reply #3 on: 27 Jan 2005, 13:30:09 »
Hi everybody.
Thanks for replying. Well I took a look at vektorbosons Viewport Detection. Didn't understand, it's pretty hard. I don't know much about scripting so for the time being I tried to get around it. I know should read some tutes about it. Sometimes it's hard for me to understand plus I'm no english mothertongue so I got some ulterior difficulties to deal with complex scripts. Anyway maybe there might be someone who can give me some other tips or links or tutes to read to solve this problem.  ???Thanks anyway.

Offline markb50k

  • Members
  • *
  • That's a bunch of bunk
    • Galactic Simulation
Re:Disable Command view ???
« Reply #4 on: 27 Jan 2005, 20:08:46 »
im new to this scripting stuff too, but i am a programmer in java and visual basic, so how about this for an idea


is there a function that can detect what camera view you are using, if so, just have it loop and IF you are in Command View, switch to internal.

probably too simple to work, but maybe not. ??
« Last Edit: 27 Jan 2005, 20:09:14 by markb50k »