Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Forced Camera Movement?

Author
Message
Woody376
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 18th Sep 2011 12:17
Hey all you FPS Creators!

I was just curious to know if anyone has seen/heard of/created any script that will force the player to face a certain entity or position, which can be triggered by a trigger zone or any form of activation? So, when the player enters a certain zone, the script forces the screen to rotate to the position of a certain entity, most likely outlined in the specific script.

I know how precise this sounds, and am unsure as to it's difficulty in creation of use, but it would serve as a GREAT addition to my current project.

Thank you in advance to any advice which could be provided!

Woody

Zombies, my friend. Zombies everywhere.
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 19th Sep 2011 13:00
not in vanilla-fpsc, but wasp-mod and i think nearly every other mod has this features.
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 20th Sep 2011 10:42
Plrpointatobject= Points the player at the entity. x defines a y offset.

This is a vanilla fpsc 118 action.


maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 20th Sep 2011 10:56
"Plrpointatobject=" works? great, have to try. so sorry for the post above.
Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 20th Sep 2011 11:30
It actually does work.
add it in the main ai script of the entity you want to use to have the player look at.

I just use these in objects that I spawn, so when the object spawns it turns the player toward that object.


bobbyisthebest
13
Years of Service
User Offline
Joined: 12th Mar 2011
Location:
Posted: 5th Oct 2011 16:23
So, I have an entilty called "look" which spawns when you go into a trigger zone.
This is the main script of "look".



Any idea why this doen't work? The entity doesn't even spawn (and I have check the trigger).

Help me.... I'm new!
bobbyisthebest
13
Years of Service
User Offline
Joined: 12th Mar 2011
Location:
Posted: 5th Oct 2011 16:35
What an idiot! Part of the problem was that my spawing entity was in mid air!
However, while the entity is now spawning the "plrpointatobject" bit is not working so......

Help me.... I'm new!
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 5th Oct 2011 17:17
The "plrpointatobect" must be called by the entity you want to look at.

Think of the command saying "look at me! look at me!".

maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
bobbyisthebest
13
Years of Service
User Offline
Joined: 12th Mar 2011
Location:
Posted: 11th Oct 2011 15:24
I don't understand.

plrpointatobect is in the script of the spawning entity

Have I got this wrong?

Help me.... I'm new!
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 11th Oct 2011 16:41
Have you tried removing the "=look" part - this bit is not needed.

bobbyisthebest
13
Years of Service
User Offline
Joined: 12th Mar 2011
Location:
Posted: 11th Oct 2011 19:27
Yeah, I tried that. Still not doing anything when it spawns.

Help me.... I'm new!
bobbyisthebest
13
Years of Service
User Offline
Joined: 12th Mar 2011
Location:
Posted: 11th Oct 2011 19:29 Edited at: 11th Oct 2011 19:29


Help me.... I'm new!
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 22nd Oct 2011 00:53
plrpointatobject=x

x is the camera y offset, that's what it says in the manual. I've tested it and it works you don't use words or entity names or nothing you use:

plrpointatobject=1
or
plrpointatobject=10
or
plrpointatobject=-17
or
plrpointatobject=50

get it now?

also it's a good idea to activate this at the same time as the player enters a triggerzone that disables him

I appear to have burst into flames...
bobbyisthebest
13
Years of Service
User Offline
Joined: 12th Mar 2011
Location:
Posted: 27th Oct 2011 12:31
Ahhh! Now I get it!

Quote: "also it's a good idea to activate this at the same time as the player enters a triggerzone that disables him
"


What action do I use to freeze the player's movment?

Sorry for all the questions, you guys have been most helpfull!

Help me.... I'm new!
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 19th Nov 2011 18:23
oops sorry for leaving you hanging there,

plrdisable=100 will suspend the player for 100 milliseconds (1/10 of a second)

I appear to have burst into flames...
bobbyisthebest
13
Years of Service
User Offline
Joined: 12th Mar 2011
Location:
Posted: 30th Nov 2011 20:20
Is this only for a new version becose plrdisable works and plrpointatobject doesn't.

Also I looked in my manual and plrpointatobject isn't in the action index

Help me.... I'm new!
angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 1st Dec 2011 16:41
it might be in v117, but v118 has it for sure. If you want maximum scripting commands look up 119 or 1.19 for the beta on the forum

I appear to have burst into flames...
Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 11th Dec 2011 09:11
Is there a way to have this animate the camera? I notice it quickly moves the players view to an object but doesn't move the players view to the object it just jumps to it.

Login to post a reply

Server time is: 2024-11-24 05:01:46
Your offset time is: 2024-11-24 05:01:46