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 / controlling entities!

Author
Message
da2020
14
Years of Service
User Offline
Joined: 26th Dec 2009
Location: C:\\Program Files\\
Posted: 26th Jun 2010 07:51 Edited at: 26th Jun 2010 07:53
Hey guys I've made a this simple script for fps creator where the player can control the entity that was using this script no mod is needed for this; controls:


And finally the script!:


!Warning!:


Hope it helped!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 26th Jun 2010 18:00 Edited at: 26th Jun 2010 18:11
I wasn't aware that the moveback=x was functional.
It was one of those actions that was planned but not incorporated in FPSC's release.

Did Lee make this functional in one of the updates? (if so, which one?)

Anyway, the lack of the moveback=x is why I had to use the player's markers for a retrace of the steps instead of the moveback=x for my puppet script.

It is nice to see someone else trying to do this kind of stuff with the stock engine though.

Nice Job

   Conjured Entertainment

 WARNING: Intense Madness
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 27th Jun 2010 06:07 Edited at: 27th Jun 2010 06:54
moveback is not available. I looked in the source code and even though there is a command for it there is no subroutine to be found. I'm not sure why Lee didn't put it in. Should be similar to movefore.

It appears that it would not be that simple. I believe that it is hard coded for the entity (this was made specifically for a character - npc) to always move in the direction that the entity is facing. When making an entity I assume that there is a front and a back to the entity and the entity will move in a front-ward direction. That is why there is the rotate, so whichever direction the front is rotated to will be the forward motion. To change that looks like it would be cause for some major code changes.


Quote: "It is nice to see someone else trying to do this kind of stuff with the stock engine though."


I second that.

F22Raptor
14
Years of Service
User Offline
Joined: 10th May 2010
Location:
Posted: 13th Jul 2010 10:13
I will give you the credit for this but i beleve that this script can be modified for an actual character npc if you link the animation with the button you press you really are on to something keep up the good work ill post what im trying to do later

<F22>
F22Raptor
14
Years of Service
User Offline
Joined: 10th May 2010
Location:
Posted: 13th Jul 2010 10:57
i have a solution for your move back problem its simple just minus the move fore example movefore=-5

<F22>

Login to post a reply

Server time is: 2024-11-24 21:21:30
Your offset time is: 2024-11-24 21:21:30