i have done much searching seth and i simply didnt stumble on it, and as for the search button, pah that works on the same principal as the monkeys producing shakespeare!
but the rc script is just a by product of the final production im working on, see i want my enemy to wait til it sees me, attack me, take a certain amount of damage and run away and try again, then when its taken enough hits it falls under my control!
and i can then manupulate it to where its needed, eg like taking a commander hostage to open iris recognition or palm print doors replication
;artificial intelligence script
desc = shoot enemy then control them
;triggers
:state=0,plrdistfurther=300:animate=1
:state=0,plrdistwithin=300:rotatetoplr,animate=55,movefore=5
:state=0,plrdistwithin=80:rotatetoplr,reloadweapon,useweapon,plraddhealth=-5,state=20
:state=0,shotdamage=1:state=1
:state=1,scancodekeypressed=36:state=3,animate=40
:state=2,scancodekeypressed=200:state=4
:state=2,scancodekeypressed=203:state=6
:state=2,scancodekeypressed=205:state=5
:state=2,scancodekeypressed=38:state=7
:state=3:sound=audiobankscifisceneryliftsup.wav,floatrate=5,state=2
:state=4:sound=audiobankscifisceneryliftsdown.wav,movefore=50,state=2
:state=5:sound=audiobankscifisceneryliftsdown.wav,state=10
:state=10:timerstart,state=12
:state=12,timergreater=250:rotateiy=90,timerstart,state=2
:state=6:sound=audiobankscifisceneryliftsdown.wav,state=11
:state=11:timerstart,state=13
:state=13,timergreater=250:rotateiy=-90,timerstart,state=2
:state=7:destroy
:state=20,plrdistwithin=100:pivotrandom=90,animate=55,movefore=100,rotatetoplr,state=0
:state=20,plrdistfuther=100:state=0
;end of script
that so far is the best i can do, waits til your in distance, comes towards you, hurts you if it gets close and if you shoot it it freezes and waits so you can press j to take control
any help would be appreciated with the animation side of things i have trouble scripting that in as you will see if you run the script
Edit: ok this
;artificial intelligence script
desc = shoot enemy then control them
;triggers
:state=0,plrdistfurther=300:animate=1
:state=0,plrdistwithin=300:rotatetoplr,movefore=5,animate=41
:state=0,plrdistwithin=80:rotatetoplr,animate=41,plraddhealth=-5,state=20
:state=0,shotdamage=1:state=30
:state=0,healthless=50:state=1,animate=40
:state=30:pivotrandom=90,movefore=100,animate=41,state=31
:state=30,healthless=50:state=1,animate=40
:state=31:timerstart,state=32
:state=32,timergreater=1000:pivotrandom=90,animate=41,movefore=100,rotatetoplr,state=0
:state=32,healthless=50:state=1,animate=40
:state=1,scancodekeypressed=36:state=3,animate=40
:state=2,scancodekeypressed=200:state=4
:state=2,scancodekeypressed=203:state=6
:state=2,scancodekeypressed=205:state=5
:state=2,scancodekeypressed=38:state=7
:state=3:sound=audiobankscifisceneryliftsup.wav,floatrate=5,moveup=10,state=2
:state=4:sound=audiobankscifisceneryliftsdown.wav,movefore=50,state=2
:state=5:sound=audiobankscifisceneryliftsdown.wav,state=10
:state=10:timerstart,state=12
:state=12,timergreater=250:rotateiy=90,timerstart,state=2
:state=6:sound=audiobankscifisceneryliftsdown.wav,state=11
:state=11:timerstart,state=13
:state=13,timergreater=250:rotateiy=-90,timerstart,state=2
:state=7:destroy
:state=20,plrdistwithin=100:pivotrandom=90,animate=41,movefore=100,timerstart,state=21
:state=20,healthless=50:state=1,animate=40
:state=21,timergreater=1000:state=0
:state=21,healthless=50:state=1,animate=40
;end of script
should be a lot better, i just used the freeform animations to show what you can do with it, i plan a sort of psycho kinetic power for my player so that you can manipulate things remotely for puzzles etc , people, objects the like, the ai at the moment is very basic as normal, but it gives you an idea of what im going for
now when you get within distance the (in this case it was animated for a gghost) will pursue you and damage you if you get close, if you shoot it it will head off in a random direction and then resume its assualt, when its health drops below 50 it freezes and waits to be activated (by pressing j ) once activated you can again use the up left and right arrow keys to manipulate the entity around, replace the animations as you see fit
- Why is everyone on here so rude? -