In the NPC's main script you need to use the following commands:
settargetname
settarget
activatetarget
settargetname is the name of the target you want to activate. Then you need to set the target by the
settarget command. Finally when you want to activate the entity you use
activatetarget giving it the value of the activation number.
settargetname=
entityname
activatetarget=1 or whatever activation number you want to use. It is always one (1) if you want to spawn the entity.
BTW, when I first started using FPSC and came across this issue I went into the character's (NPC's) fpe file and included an ifused= line. Then I discovered these commands. I think Plystire introduced me to these commands. This is the best way to do it and you will find that you can use this when you need to activate more than one entity using one entity.
The past has a lot of memories to hold onto; but, today is chock full of new adventures, and, the future shouts out, "The best is yet to come!" -- TerryC