Home   Help Search Login Register  

Author Topic: locking views?  (Read 531 times)

0 Members and 1 Guest are viewing this topic.

rancor_man67

  • Guest
locking views?
« on: 13 Sep 2003, 02:07:19 »
Hi,

If you cast your minds back to halflife, opposing force, you will probobly remember the the intro where you fly into black-mesa in an osprey, then you are attacked by the aliens.

I am attempting to make an intro a little like that.
What happens is that you start in a blackhawk, or somthing of the sort, facing the door so you can see whats going on. Then your hit by a shilka or somthing, but thats not the point.

The point is that i would like to disable to outisde view, so that players have to stay inside the chopper at all times. Once the chopper has crashed, it could be re-enabled. It would also be nice to be able to dissable the eject button as well.

Is any of this possible?

Thanks,

Rancor.

Gameer_77

  • Guest
Re:locking views?
« Reply #1 on: 13 Sep 2003, 02:17:33 »
To stop him from leaving, use:

choppername lock true

To keep the player's view inside the chopper, make a script that goes something like this:

#loop
player switchcamera "internal"
?!StopAndRegainExternal:goto "loop"

So when you wanted him to be able to do 3rd person again, you'd say:

StopAndRegainExternal=true

Gameer :)

rancor_man67

  • Guest
Re:locking views?
« Reply #2 on: 13 Sep 2003, 03:25:33 »
I am not good with scripts, but i'll give that a try.

Thank you!

Gameer_77

  • Guest
Re:locking views?
« Reply #3 on: 13 Sep 2003, 13:46:56 »
Just gave it a go myself, you have to make it:

nameofchopper switchcamera "internal"

As opposed to:

player switchcamera "internal"

Gameer