Hi ,
I'm looking for some help. I've tried searching and I've read Xplosys FPI scripting tutorial more than enough times to have found it but I still can't find the condition I need.
What I'm looking for is a condition that I can use to check whether the player HAS a weapon.
This is what I've managed to get so far:
;Artificial Intelligence Script
;Header
desc = Pace Waypoints, If Player Has Gun, Rotate And Shoot
;Triggers
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
:nearactivatable=0:settarget,activatetarget=2,animate=1,state=0
:state=0:state=1
:state=1,plrcanbeseen:settarget,state=2
:state=1,random=20:rotateheadrandom=65
:state=1,random=60:rotatetoplr
:state=1,shotdamage=10:settarget,animate=1,rotatetotarget,resethead,state=2
:state=1,noiseheard=5:settarget,rotatetotarget,rotatetoplr
:state=2,ifweapon=1:state=3
:state=2,ifweapon=0:state=1
:state=3:waypointstop,rotatetoplr,state=4,shootplr
:state=4:animate=1,state=1
;End of Script
Oh, in Xplosys tutorial it also says
Quote: "IFWEAPON=X is true when the weapon being used by entity is ready and X is one"
I don't completely understand this.
Any help would be much appreciated,
Thanks