Switching perspective

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Switching perspective

Post 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::
"all the governments in the world are corrupt and in the hands of the Illuminati"
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

u cant set 3rd person in game because its cheat protected. u need to have it in newconfig.cfg
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 .
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

*SOLVED* Thx alot bdbodger!
"all the governments in the world are corrupt and in the hands of the Illuminati"
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post 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
Image
Post Reply