enemy help

Topics regarding Scripting with Reality Factory
Post Reply
Guest

enemy help

Post by Guest »

anybody know how to make an enemy that just walks around and when he sees you start attacking you.i've used the docs but i can't get the pawn to move.can anyone help me?
User avatar
SithMaster
Posts: 306
Joined: Mon Jul 04, 2005 11:45 pm

Post by SithMaster »

this should be in scripting.

when i first added an enemy i got this to work. hmmmmm..thinking

which ai script are you using? to be honest i havent had any time to work with rf since august (school=mostly wasted time) anyway i should be able to figure this out though someone more adept will probably beat me to it.

also make sure you followed the steps for ai carefully. if you did them right it can you describe what the pawn does-does it attack if you are right in front of it?
The brightest light casts the darkest shadow.
Burn the heretic. Kill the mutant. Purge the unclean.
User avatar
SithMaster
Posts: 306
Joined: Mon Jul 04, 2005 11:45 pm

Post by SithMaster »

If you need any of the files i used let me know and i'll post links to them cause i know some of them arent in the latest release.

for my pawn i used agrunt.act though you can use any pawn you have

then i went to the pawn.ini found in the install folder and opened it in notepad
you should see something like this

[agrunt]
actorname = pawn\agrunt.act
actorrotation = 0 180 0
actorscale = 1
fillcolor = 255 255 255
ambientcolor = 255 255 255
subjecttogravity = true
boundingboxanimation = Idle

i just copied the above and pasted it a line below the last line
on the copied text change the line [agrunt] to whatever you want
and then change the line actorname = pawn\agrunt.act
example actorname = pawn\alien.act
change it to what actor file your using

in your level add from the template the pawn entity and then go to entities and entity editor
pawntype is the name you entered in the pawn.ini ie-[agrunt]
scriptname- genericmelee.s
spawnorder- Spawn

everything is case sensitive
then compile and it should work in which case i didnt explain things well enough[/img]
The brightest light casts the darkest shadow.
Burn the heretic. Kill the mutant. Purge the unclean.
hike1
RF FAQ-Keeper
Posts: 607
Joined: Tue Jul 05, 2005 4:19 am
Contact:

Post by hike1 »

User avatar
SithMaster
Posts: 306
Joined: Mon Jul 04, 2005 11:45 pm

Post by SithMaster »

hike i dl that script to test when i started writing this but i havent tried it yet. did you comment where to change the range before she melees? this script sounds like what ive been wanting for my own but it will need some modifications for what im planning. :wink:
The brightest light casts the darkest shadow.
Burn the heretic. Kill the mutant. Purge the unclean.
User avatar
SithMaster
Posts: 306
Joined: Mon Jul 04, 2005 11:45 pm

Post by SithMaster »

If this has solved the problem let me know. My ego could use the good news. but seriously would like to know if i need to retry my instructions.
The brightest light casts the darkest shadow.
Burn the heretic. Kill the mutant. Purge the unclean.
Post Reply