Actor cog script commands can be broken into two groups those that "Control" something and those that get "Information" as described below.
Clears the Ai mode flags Ai Mode Flags
Use: AiClearMode(thingref,flags int);
Tells ai to flee from a specific location
Use: AiFlee(thing ref,vector position);
Gets the current ai mode flags for a thing Ai Mode Flags
Use: Int=AiGetMode(thing ref); returns int
Gets the current move position from thing
Use: vector=AiGetMovePos(thing ref); returns vector
?
?
Sets a thing's AI file
Use: AiSetClass(ThingRef, AIref);
Sets the firing target for an ai
Use: AiSetFireTarget(thingref,Target thingref);
Sets the look target frame for a thing
Use: AiSetLookFrame(thing ref,frame int);
Sets look target position for a thing
Use: AiSetLookPos(thing ref,vector);
Set ai mode flags Ai Mode Flags
Use: AiSetMode(thing ref,int);
Sets the thing move frame
Use: AiSetMoveFrame(thing ref,frame int);
Sets thing move position
Use: AiSetMovePos(thing ref,vector);
Sets thing move speed
Use: AiSetMoveSpeed(thing ref,flex); 1.5,2.0 = run , 1.0 = walk
Sets the ai move to a thing
Use: AiSetMoveThing(thing ref, chase thing);
Clears the specified actor flags of a thing. Actor Flags
Use: ClearActorFlags(thing,flag); Does not modify flags not specified.
Retrieves the actor flags of a thing. Actor Flags
Use: Flags = GetActorFlags(thing); Returns an Integer representing the flag(s)
Retrieves the actors weapon .
Use: HasWeapon = GetActorWeapon(thing,bin); Returns "-1" if actor has no weapon.
Retrieves the Fieldlight intensity
Use: Light = GetHeadLightIntensity(Thing); Returns an Integer representing Light Intensity
Retrieves the thing health.
Use: Health = GetThingHealth(Thing); Returns a flex representing thing health
Heals a thing health.
Use: HealThing(thing,flex);
?
?
Sets the extra speed of actor.
Use: SetActorExtraSpeed(thing,flex);
Sets the actor flags of a thing. Actor Flags
Use: SetActorFlags(thing,flag); Only sets the specified flags.
It`s used to remove a weapon from an actor not a player. Not sure if it can be used to give a weapon .
Use: SetActorWeapon(thing, bin, template); bin must be 1 (actors only have 1 bin) ,template = -1 removes the weapon template.
Sets the Fieldlight intensity
Use: SetHeadLightIntensity(Thing,flex); not used in cogs,so assuming params will be this.