function light_npc_init(e) lightNum = GetEntityLightNumber(2)--change 2 to the entity number of the light end function light_npc_main(e) x, y, z, Ax, Ay, Az = GetEntityPosAng( 1 ) --change 1 to the entity number of the npc SetLightPosition ( lightNum, x, y+250, z ) end