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 / Moveback still not working?

Author
Message
Kilgore
16
Years of Service
User Offline
Joined: 22nd Feb 2008
Location: Chad Valley
Posted: 30th Sep 2010 16:48
After a search, I saw a post from '09 that the 'moveback' action wasn't working properly...is this still the case?

Seems like a fairly major problem not being able to have a enemy move back when the player approaches. Anyone aware of a workaround (apologies if this has been answered before)?
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 30th Sep 2010 17:11
Afaik moving entities always worked properly, but most PLRMOVE commands where bugged up until 1.16.

I have no idea though if these are working properly in 1.17...

In case you find my grammar and spelling weird ---> native German speaker ^^
Kilgore
16
Years of Service
User Offline
Joined: 22nd Feb 2008
Location: Chad Valley
Posted: 30th Sep 2010 17:27 Edited at: 30th Sep 2010 17:28
Thanks for the reply, Storyteller.

The original post I saw about this was this one:

http://forum.thegamecreators.com/?m=forum_view&t=143963&b=26

I've tested it using a very simple stripped down script on 1.16 and it still seems to be an issue, though movefore works OK. Maybe I'm just doing something stupid!
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 30th Sep 2010 21:32
I checked my files (community guide etc.) and although I did find MOVEFORE, MOVETOTARGET and MOVEUP I couldn't find a MOVEBACK action. I also found that the CHOOSESTRAFE action may further choose only left, right and forward.

Which makes me think that the engine doesn't allow NPCs to move backwards yet.

To have an NPC runaway from the player, scripts can combine the following
any condition (like distance/health/damage/etc)
ROTATOPLAYER
ROTATEIY=180
RUNFORE=x


There is also a FORCEBACK=x command thats usually used when p.e. a weapon like a shotgun is fired at an NPC.

Hope that helped a bit

In case you find my grammar and spelling weird ---> native German speaker ^^
Kilgore
16
Years of Service
User Offline
Joined: 22nd Feb 2008
Location: Chad Valley
Posted: 30th Sep 2010 22:06
Thanks again - yes, that's really helpful and gives me some alternative ideas to work with.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 1st Oct 2010 20:38
movefore=-5

should make them move backward. Worth a shot, anyway.


The one and only,


Kilgore
16
Years of Service
User Offline
Joined: 22nd Feb 2008
Location: Chad Valley
Posted: 2nd Oct 2010 18:33
Thanks for the suggestion, Plystire. Unfortunately, the negative option doesn't seem to work for this.

For the moment I'm going to have the entity rotate away as Storyteller suggested and use movefore. Hopefully moveback will be fixed in one of the updates.

Login to post a reply

Server time is: 2024-11-24 19:52:37
Your offset time is: 2024-11-24 19:52:37