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 Product Chat / how do i make an entity follow a waypoint then leave it at the end?

Author
Message
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 11th Apr 2009 13:04
hello everyone, i am trying to make a game that involves an entity appearing from around a corner then attacking you as part of a zombie survival (think call of duty but worse)

i can make an entity follow a waypoint but i am at a loose end when it comes to making it leave the waypoint at the end.

can anybody help me on this?

my motto: if it looks awesome, it probbably is awesome.

shallowness is fun!
Bejasc3D
16
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Down Under
Posted: 11th Apr 2009 14:44
I also have a similar question.

I have an entity folowing a waypoint, but when it gets to a point of the waypoint that is before a door, I want him to dissapear as he reaches the end of it, making him have" gone through "the fake door.

shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 11th Apr 2009 14:51
cool, you'll probbaly need to have a look at how the skull's script works, because that dissapears when it dies.

my motto: if it looks awesome, it probbably is awesome.

shallowness is fun!
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 11th Apr 2009 14:57
Please post the scripts you are working with so we can help you with them.

Best.

Freakon
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location:
Posted: 11th Apr 2009 15:45 Edited at: 11th Apr 2009 15:59
Extract from page 258 of the community guide located at:

http://forum.thegamecreators.com/?m=forum_view&t=131868&b=21

Q: How do you delete an enemy when it's reach the end of its waypoint?

A: This is covered in the manual. "WAYPOINTSTATE=X is true when the waypoint state value equals X State 0 means the entity has not yet started following waypoints State 1 means the entity is looking for the nearest waypoint marker to start from State 2 means the entity is following a waypoint line to its current waypoint marker State 3 means the entity has reached the waypoint marker and needs to decide what to do State 4 means the entity has reached the waypoint marker and it splits off in more than one other direction State 5 means the entity has reached the very end of the current waypoint structure and requires a decision to be made" Look at state 5. The simple way would be to: :waypointstate=5:none or any action other than returning to another waypoint state. To delete the character at the end of the waypoint: :waypointstate=5:destroy

Hope this answers both your questions.

Far too new to be helping...

shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 11th Apr 2009 19:41
ok,i just about get that, but what would i put at the end of waypoint=state5: if i wanted the entitie (zombie)to leave the way point and attack the player?
i'm adding state=0 to the end, don't know if it'll work, but it's worth a try.

my motto: if it looks awesome, it probbably is awesome.

shallowness is fun!
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 11th Apr 2009 20:31
:waypoint=state5:shootplr

Best.

shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 12th Apr 2009 13:49
oh man, i am stooooopid, i should've known that, thanks.

my motto: if it looks awesome, it probbably is awesome.

shallowness is fun!
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 12th Apr 2009 14:00
yeah, i know what the problem is now, (it didn't work)

zombies don't have a shootplr script, they're a melee entitie, so what would i put if i wanted the zombie to follow and slash me when it reached the end of the waypoint?

my motto: if it looks awesome, it probbably is awesome.

shallowness is fun!

Login to post a reply

Server time is: 2024-10-12 07:16:52
Your offset time is: 2024-10-12 07:16:52