enemy help
enemy help
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?
- SithMaster
- Posts: 306
- Joined: Mon Jul 04, 2005 11:45 pm
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?
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.
Burn the heretic. Kill the mutant. Purge the unclean.
- SithMaster
- Posts: 306
- Joined: Mon Jul 04, 2005 11:45 pm
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]
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.
Burn the heretic. Kill the mutant. Purge the unclean.
- SithMaster
- Posts: 306
- Joined: Mon Jul 04, 2005 11:45 pm
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. 

The brightest light casts the darkest shadow.
Burn the heretic. Kill the mutant. Purge the unclean.
Burn the heretic. Kill the mutant. Purge the unclean.
- SithMaster
- Posts: 306
- Joined: Mon Jul 04, 2005 11:45 pm