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 / Make an enemy follow a waypoint at a certain time?

Author
Message
sps999
17
Years of Service
User Offline
Joined: 23rd Oct 2007
Location: On my Computer
Posted: 19th Jan 2008 20:28
What I want is a script the makes it so once a characters health is less than, oh say, 1000 than it will follow a waypoint and after the waypoint it'll dissappear and someone else will spawn. I have a basic blue prints that go like this:

(The character script):state=71
state=71:healthless=1000:state=72
state=72:waypointstate=1 (other things that make it follow a waypoint)
state=75(or something close):waypointstate=5:destroy:state=6
state=76:activateifused=1 (search several to know how to activate stuff with enemys dying)

Note: state #'s are very high to represent that I added these lines to the character and that it won't interfere with the character itself.

Thank You.

CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 19th Jan 2008 21:35
Quote: "state=75(or something close):waypointstate=5:destroy:state=6"


Too many colons....

Also there is no If Used box for Characters, so that won't work either..

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Jan 2008 12:17
Although this is true in the editor, you can ALWAYS do Plystire's patented (sort of) "Back-hand Programming"!!!

open up the character's .fpe file and stick an ifused property in there with the name of the entity you want. That entity (and all renditions of it) will now and forever (until you change the .fpe file again) have that entity name as it's "If Used" property.

It's not very dynamic, but hey... whenever you back-hand someone you usually get a pretty static "Wt* was that for?!?"


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
sps999
17
Years of Service
User Offline
Joined: 23rd Oct 2007
Location: On my Computer
Posted: 20th Jan 2008 14:24
Quote: "open up the character's .fpe file and stick an ifused property in there with the name of the entity you want. That entity (and all renditions of it) will now and forever (until you change the .fpe file again) have that entity name as it's "If Used" property.
"


Like I said, search "several" and it'll come up with a thread called something like " How to open a door from killing several enemies"

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 21st Jan 2008 07:02
So... is this a script showcase thread? Or are you asking for help with this?

If you're asking for help, then I suggest not using colons in place of commas. Lol

- Colons are used to initiate the list list of conditions or actions
- Commas are used as delimiters for the aforementioned lists.

Also, "waypointstate=X" is a condition and not an action, and as such won't be part of the actions that make an entity follow a waypoint. Actions like:

- waypointstart
- waypointstop
- waypointnext
- waypointrandom

are examples of actions that make an entity react to waypoints.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!

Login to post a reply

Server time is: 2024-11-24 03:59:02
Your offset time is: 2024-11-24 03:59:02