CMD: ViewClass PlayerStart #?

Discussions about Coding and Scripting
Post Reply
ued4sct
Novice
Posts: 6
Joined: Thu Mar 08, 2012 5:15 am

CMD: ViewClass PlayerStart #?

Post by ued4sct »

sorry if wrong bunch of forum.

how choose definite PlayerStart number? (for example: ViewClass PlayerStart21

[youtube]L_E9kX5XVi4[/youtube]
User avatar
Feralidragon
Godlike
Posts: 5493
Joined: Wed Feb 27, 2008 6:24 pm
Personal rank: Work In Progress
Location: Liandri

Re: CMD: ViewClass PlayerStart #?

Post by Feralidragon »

You can't afaik.
ViewClass or CheatView only cycle between actors of a given class, but not an actor in specific.

However it's possible to do that, you would have to write a simple mod (or have someone writing it for you) where would assign your ViewTarget to that specific actor given a specific name.
Higor
Godlike
Posts: 1866
Joined: Sun Mar 04, 2012 6:47 pm

Re: CMD: ViewClass PlayerStart #?

Post by Higor »

Type: BehindView 1

Type: set PlayerPawn ViewTarget (actor name)

Your viewtarget will now be that actor, if it exists.
User avatar
Feralidragon
Godlike
Posts: 5493
Joined: Wed Feb 27, 2008 6:24 pm
Personal rank: Work In Progress
Location: Liandri

Re: CMD: ViewClass PlayerStart #?

Post by Feralidragon »

Cool, nice solution, didn't think about that one. :tu:
Higor
Godlike
Posts: 1866
Joined: Sun Mar 04, 2012 6:47 pm

Re: CMD: ViewClass PlayerStart #?

Post by Higor »

It's a similar approach to that of SetPropertyText...

Create a dummy actor or mutator, with this...
var object MyInput;

then use this command in a function:
SetPropertyText("MyInput", "Input'Input0'");

MyInput points to the transient input, I'd recommend setting this var to NULL upon actor destruction.
Now using MyInput.GetPropertyText("KeyName"); you can detect the key bindings, and change them with MyInput.SetPropertyText.
ASLY

Re: CMD: ViewClass PlayerStart #?

Post by ASLY »

Oh lol, in my tweak working this command, showing the spawnpoints, nice! :D
ued4sct
Novice
Posts: 6
Joined: Thu Mar 08, 2012 5:15 am

Re: CMD: ViewClass PlayerStart #?

Post by ued4sct »

thankU
Post Reply