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 / Moving an entity left / right

Author
Message
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 3rd Jan 2008 23:47 Edited at: 3rd Jan 2008 23:49
I know there is MOVEBACK=X, MOVEFORE=X & MOVEUP=X, but can you move an entity left / right?

Was going to take a break... But I missed FPSC!
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 4th Jan 2008 13:09 Edited at: 4th Jan 2008 13:10
if im not going wrong X = x-axis so left and right. Umm so if you make it like -10 it will move <-- and if you do 10 it will move ---> probably. Hope it helped dont know if it works

Or there could be movexaxis=x or something similar...
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 4th Jan 2008 15:57
X in this case means a number, as in MOVEBACK=10. I'm trying to move a picture along a wall and show a safe behind it.

Was going to take a break... But I missed FPSC!
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 4th Jan 2008 17:09
Checking through my long list of commands.....(from your guide incidentally)

Right,there isn't any MOVELEFT/MOVERIGHT commands, but there is FORCELEFT=X and FORCERIGHT=X.......

try those and see how they work, you might need to tweak the X value though.

Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 4th Jan 2008 21:15
Hehehe at what Coffee Grunt said xD "(from your guide incidentally)" hehe
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 5th Jan 2008 21:12
I've tried FORCELEFT/RIGHT but they don't seem to do anything.

Was going to take a break... But I missed FPSC!
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 5th Jan 2008 21:22 Edited at: 5th Jan 2008 21:23
Nickydude,

I don't know if these could be clues:

PLRMOVEEAST=X move the player east by X units

PLRMOVEWEST=X move the player west by X units

PLRMOVENORTH=X move the player north by X units

PLRMOVESOUTH=X move the player south by X units


Never had any luck with them, myself. Don't know if omitting PLR might cause the entity to shift accordingly, or not.

Quote: "...I've tried FORCELEFT/RIGHT but they don't seem to do anything."


Nah. That's for impact from the left or right.

Thanks,

Seth Black


Widow 13 - Coming Spring 2008
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 5th Jan 2008 21:22
hmmmmmm......

i give up.

Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 5th Jan 2008 23:27
WoW first time i ever say Coffee grunt say something like that bit disapointing...he usually has an answer back in his sleave.

<- made by Nickydude
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 6th Jan 2008 00:17
If anyone can manage to get an entity to move when they go near it then give me a shout as I can't manage it

Was going to take a break... But I missed FPSC!
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 6th Jan 2008 00:25
i may have found what you need try using a combo of SPINRATE=X and MOVEFORE=X

<-made by Nickydude
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 6th Jan 2008 00:28
I don't want to spin the entity, it's a picture on a wall. I just want it to move to the side to reveal a safe.

Was going to take a break... But I missed FPSC!
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 6th Jan 2008 00:32 Edited at: 6th Jan 2008 00:36
oh i remember somebody giving me a script with something sililar...tho it activates with a [USE] key let me see i think i still have it

[edit]

Nope it used moveup which in your case its not useful...well try making it that it spins, moves and spins again fast enough.. gee ur tips/triks helps alot!

<-made by Nickydude
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th Jan 2008 05:08
Nickydude, you may want to play around with the "strafe" commands. As they are EXACTLY the entities "left" and "right".

Not sure if you'll be able to TELL the entity to always strafe left or strafe right, but it'll get you going in the right direction.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 6th Jan 2008 15:27
This is the code I'm using



But the entity isn't moving at all.

Was going to take a break... But I missed FPSC!
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 6th Jan 2008 15:34
Ok, I've tried a few different commands:

strafe
moveup
rotateiy


but the entity doesn't do anything at all!! Can anyone manage to do the following:

1. Move a picture along a wall left or right when the player gets within a certain distance?
2. Have a statue spin around to face the player when he gets within a certain distance?

Was going to take a break... But I missed FPSC!
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 6th Jan 2008 15:41
you must use "CHOOSESTRAFE" before you use "STRAFE"...

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 6th Jan 2008 16:04
You mean like this



as that doesn't seem to do anything either. Is the strafe command only used on characters?

Was going to take a break... But I missed FPSC!
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 6th Jan 2008 16:56
I think so, but i think you use CHOOSESTRAFE straight before STRAFE,like:

:state=1,plrdistwithin=5767:choosestrafe,strafe

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 6th Jan 2008 19:24
Quote: "...it's a picture on a wall. I just want it to move to the side to reveal a safe."


...hmmmn. If scripting it doesn't pan out, why not animate the slide?

Since you want the player to have proximity to it,when it moves, why not set this up with a trigger zone, ala the collapsing balcony concept?

Just a thought. Visually, it would work.

Thanks,

Seth Black


Widow 13 - Coming Spring 2008
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 7th Jan 2008 01:32
Hey nickydude...

I was thinking that since the picture on the wall isn't going to be facing in any direction other than straight away from the wall, why not MODEL the poster so that it's "sideways"?

That way when the poster moves "forward" it will appear as though the poster is moving sideways?


If that made any sense to you let me know how it goes.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 7th Jan 2008 02:31
Quote: "...so that it's "sideways"?"


...that's a great idea. Then, you could use the standard MOVEFORE=X command.

That'd be your easiest solution, to be sure.


Widow 13 - Coming Spring 2008
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 7th Jan 2008 19:35
So there's no way to move a painting sidewards using a script?

Was going to take a break... But I missed FPSC!
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 7th Jan 2008 19:47
...technically, no.

You could fudge it, and still give that illusion by
using Plystire's suggestion.

I believe that the method I suggested would probably give you the effect you're looking for, as well.


Widow 13 - Coming Spring 2008
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 7th Jan 2008 22:53
Q: How do you make platforms move horizontally, like across chasms or acid?
A: Use the "antigravplatform" in the Entity Library. You'll find in the scifi/scenery/lifts folder. You have to use
waypoints for it, else it will not move. Use the following script and the platform won’t move until the player
actually steps upon it:
;Artificial Intelligence Script
; by xplosys

;Header

desc = Wait for Player and Follow Waypoints with no rotation
(platform)

;Triggers

:state=0,plrdistwithin=20:state=1,norotate=1
:state=1,waypointstate=0:animate=2,waypointstart
:state=1,waypointstate=3:animate=2,waypointnext
:state=1,waypointstate=4:animate=2,waypointrandom
:state=1,waypointstate=5:animate=2,waypointreverse

;End of Script

maybe can be used for ur situation..(quoted from tutorial in sign)

<-made by Nickydude
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 7th Jan 2008 23:01
Quote: "...How do you make platforms move horizontally, like across chasms or acid?"


...he's only trying to move a smallish wall-mounted object. The waypoints would probably be too large, for that purpose.

Great idea, though.


Widow 13 - Coming Spring 2008
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 7th Jan 2008 23:11
as i said its not a my idea i just forund it on the tutorial in my sgn..anyways hmm prolly he could give it a try tho or else try making a really close waypoints...

<-made by Nickydude
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 7th Jan 2008 23:19
...hey, worth a try!


Widow 13 - Coming Spring 2008
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 7th Jan 2008 23:19 Edited at: 7th Jan 2008 23:20
hehe seth cna you help me on my thread?? its just few topics under this

<-made by Nickydude
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 9th Jan 2008 13:59
not a bad idea majer, could be a bit buggy though...

Login to post a reply

Server time is: 2024-11-27 21:40:22
Your offset time is: 2024-11-27 21:40:22