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 / My AI Script for everyone

Author
Message
Fruitless CRUNK
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: DRINKING MY HOT COFFEE =:-)
Posted: 9th Nov 2007 02:36 Edited at: 17th Nov 2007 06:57
Hay, I made a script for everyone put it in the Main part of you're AI.

What dose it do?

When you run up to the bad guy and tuch him he'll run for a gun near him and pick it up and of corse shoot you with it.


I thenk you all know the drill. ENJOY

P.S. LET ME KNOW IF THERE IS ANY BUGS WITH THIS!!!!!!!!!!

If you can't win, cheat. If you can't cheat, quite.
NBKgames
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location:
Posted: 9th Nov 2007 03:50
Wait you said you have to touch the player to activate this code, but in the script it says "Player can be seen" Am I missing something?
Sorry if I sound like a jerk but it just strikes me odd.
P.s. I'm a coding n00b

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 9th Nov 2007 07:09
You're right NBK, it will activate when the player is seen by the enemy using this script.

@Fruitless Crunk:
You could maybe make this AI better by putting waypoint compatability for the enemy. Just open up "pace.fpi" and copy the first lines talking about waypoints... and when the entity sees the player, use the command "waypointstop". When the entity loses the player, make him run "waypointstart", to get him back on track.


The one and only,
~PlystirE~

Fruitless CRUNK
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: DRINKING MY HOT COFFEE =:-)
Posted: 9th Nov 2007 16:18 Edited at: 9th Nov 2007 16:26
Im sorry but doing that will totaly screw up the script and about 2 more day's of work. I'm not trying to sound lazy but, its just that's a lot of work!!!!!!!!

If there is some other way of doing it I'll be more than glade.

If you can't win, cheat. If you can't cheat, quite.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 10th Nov 2007 03:18


There, that wasn't so hard. I just added about 5 lines to the top, which I copied and pasted from "pace.fpi", and put in "waypointstop" when the entity sees the player.

Let me know how that goes.


The one and only,
~PlystirE~

NBKgames
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location:
Posted: 10th Nov 2007 07:22
Well, I think that's a good tip plystire
Maybe I could use that for my AI script

Fruitless CRUNK
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: DRINKING MY HOT COFFEE =:-)
Posted: 10th Nov 2007 16:41
Plystire you just owned me!!!

If you can't win, cheat. If you can't cheat, quite.
nixshadow
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: In that dumpster by your house.
Posted: 11th Nov 2007 19:33
Never a dull day around here is it?

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th Nov 2007 02:03
@Fruitless:

Lol, I'm just helping out a little bit. It's still your script. If you copy the script I made and put it into your first post, I'll edit to delete mine. That'll keep people from assuming that I made it, ok?


The one and only,
~PlystirE~

spex_guy
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: coming to a forum near you!!!
Posted: 25th Nov 2007 17:30
This is pretty cool script! Nice job!

Go here!
http://forum.thegamecreators.com/?m=forum_view&t=94201&b=19
Makes the sense of my location!
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 25th Nov 2007 19:23
Quote: "Never a dull day around here is it?"


Your learning fast!

nice script BTW Plystire, isn't that what we've come to expect from you anyway?

Login to post a reply

Server time is: 2024-11-24 01:50:05
Your offset time is: 2024-11-24 01:50:05