Page 1 of 1

Switching perspective

Posted: Thu Mar 04, 2004 9:29 pm
by hogleg
Okay, Im using the command " setcvar cg_3rd_person 1" in my script and it works great.
What I'm trying to do is to make that command work only in a particular area.

Would I use a script_object tied to a trigger for that area?
If yes, what would it look like?

ThxinAdv::

Posted: Thu Mar 04, 2004 11:22 pm
by bdbodger
What would the script_object be for ? maybe just make a big trigger and when the player is inside of it he will be in 3rd person .

Make a big trigger that fills the area you want the player to be 3rd person in then give the thread a key: setthread and value: 3rd_thread

3rd_thread:
self nottriggerable
setcvar cg_3rd_person 1

while($player istouching self)
waitframe

self triggerable
setcvar cg_3rd_person 0
end

Posted: Fri Mar 05, 2004 12:09 am
by omniscient
u cant set 3rd person in game because its cheat protected. u need to have it in newconfig.cfg

Posted: Fri Mar 05, 2004 2:50 am
by bdbodger
You can in single player . He said he has it working just needs to turn it on and off in a certain area .

Posted: Fri Mar 05, 2004 11:34 pm
by hogleg
*SOLVED* Thx alot bdbodger!

Posted: Sat Mar 06, 2004 2:21 am
by omniscient
bdbodger wrote:You can in single player . He said he has it working just needs to turn it on and off in a certain area .
didnt realize it was sp, sorry