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 / Script help: Body dragging.

Author
Message
Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 30th Jun 2009 23:55
I'm trying to make a scene in the game where you walk into a room and you see a body being dragged off in the distance. Here's what I have so far. What is meant to happen with it, is that you walk into a trigger zone, and this will activate the body being dragged off in the distance.



I've tested this out and the body doesn't move. What am I doing wrong?
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 1st Jul 2009 06:46
Well, first thing I find odd, the Emtimer will make the entity destroy, but then suspend?

Remove one or the other, although thats not the problem with the script.

I dont know if you could actually do what you are asking...

Even in plys mod.

Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 1st Jul 2009 07:00
All I really want is for the entity to move for a number of seconds, and then destory itself so that when the player walks around the corner, the entity isnt there. Surely that can be made in fpsc. o_0
The Aaron
15
Years of Service
User Offline
Joined: 31st Dec 2008
Location: American High School
Posted: 1st Jul 2009 08:46
It would take some work but change the character's idle and walking anim to be lying on the floor, and then have a trigger zone activate a waypoint.
~Aaron

Download Failed...
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 1st Jul 2009 08:53
have you ever tried using the Movefore command without a timer?

I dont recall ever having it working myself...

Hockeykid
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 2nd Jul 2009 02:50
make sure the thing that has the script applied to it is a character, this is important for the movefore to work.

Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 2nd Jul 2009 02:55 Edited at: 8th Jul 2009 23:00
Ahh I see now. I'll change that and see if it'll work.
The Fps Creator rocks!
16
Years of Service
User Offline
Joined: 24th Oct 2008
Location: Sneaking down your chimney.
Posted: 8th Jul 2009 21:17
Quote: ":state=1,etimergreater=5000:destroy,suspend
"


"etimergreater"? Isn't it supposed to be "settimergreater"?

I want a new computer!
Hockeykid
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 8th Jul 2009 21:22
Quote: ""etimergreater"? Isn't it supposed to be "settimergreater"?"


Um no etimergreater=x is something in plys mod and settimergreater doesn't exists.

DestroyerHive
15
Years of Service
User Offline
Joined: 8th Mar 2009
Location: Ravenholm - pwning headcrabs
Posted: 10th Jul 2009 00:30
all this scriptig sounds so complicated!

If every millisecond in your life was 10 problems in the world, you'd be immortal
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 10th Jul 2009 01:07 Edited at: 10th Jul 2009 01:11
Quote: "I'm trying to make a scene in the game where you walk into a room and you see a body being dragged off in the distance. Here's what I have so far. What is meant to happen with it, is that you walk into a trigger zone, and this will activate the body being dragged off in the distance."


What is doing the dragging?

Perhaps you could set that character as the target, then do a movetotarget.
That should make it follow the target if it stays in that state for the duration.

Quote: "All I really want is for the entity to move for a number of seconds, and then destory itself so that when the player walks around the corner, the entity isnt there. Surely that can be made in fpsc. o_0"

I thought you meant the player dragging the body fomr the title, but then I got it after reading your first post.

You could animate the body and the guy doing the draggin together.
Then movetotarget on a stationary target (behind a wall from player view but straight line for character's path).
Once at the target the target could then activate the character which would force its script to call the destroy.

Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 10th Jul 2009 06:38
why don't you make it a whole lot simpler with waypoints? make a dead pose in fragmotion and give him a script to play that anim and follow waypoints.

Login to post a reply

Server time is: 2024-11-25 03:53:09
Your offset time is: 2024-11-25 03:53:09